I'm taking an intro into Android Studio class and for homework we had to build a Geometric Shapes App. The principle is similar to what we've done in a previous assignment, expect in this assignment we have multiple shapes and fields. To make things a bit more challenging our teacher threw in a curve and he said he wanted us to display the appropriate fields per shape. So a 

circle would display area and circumference
sphere would display volume and surface area

However, the shapes wouldn't display information that wasn't relevant to each shape. We were given two hints

1.) b.setVisibility(View.GONE); //to make button disappear  

2.) Use Google to solve any additional items

**My current problem is**: when the user selects a shape such as a circle it asks them to enter everything:

* radius
* height
* length

Then when they click "find volume" my output displays everything

* area
* circumference
* volume
* surface area
* etc ....

I have one button setup

```
    Button b = (Button) findViewById(R.id.buttonFindVolume);
    b.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {

            //find out type of shape selected by the user
            Spinner sp = (Spinner) findViewById(R.id.spinnerShapes);
            shapeType = sp.getSelectedItem().toString();

            //Extract the radius from the radius field
            EditText radiusText = (EditText) findViewById(R.id.editTextRadius);
            radius = Double.parseDouble(radiusText.getText().toString());

            //Extract the height from the height field
            EditText heightText = (EditText) findViewById(R.id.editTextHeight);
            height = Double.parseDouble(heightText.getText().toString());

            //Extract the length from the length field
            EditText lengthText = (EditText) findViewById(R.id.editTextLength);
            length = Double.parseDouble(lengthText.getText().toString());

```

Along with IF statements to calculate the shapes volume

```
if (shapeType.equalsIgnoreCase("Circle")) {

                    //compute area and circumference of the circle
                    area = (PI * radius * radius);
                    circumference = (2 * PI) * (radius);

                    //pack circle area and circumference into intent
                    intent.putExtra("computedArea", area);
                    intent.putExtra("competedCircumference", circumference);

                    //start the target activity - VolumeDisplay
                    startActivity(intent);

            } else if (shapeType.equalsIgnoreCase("Cylinder")) {

                //compute volume of the cylinder
                volume = PI * radius * radius * height;

                //pack cylinder volume into intent for the volume display activity
                intent.putExtra("computedVolume", volume);

                //start the target activity - VolumeDisplay
                startActivity(intent);

```

My question is how do I use set.visibility and what suggestions do you guys have towards how I should implement them at the beginning of my program when a user selects a shape and at the end when information is displayed.

Thank You