title: ImageView Invisible/Visible
body: <p>I have this imageView that I want to be Invisible at first... 
  Then when I click a button (calculateButton),  the imageView will be Visible.</p>
  
  <p>Here's my ImageView:</p>
  
  <pre><code>&lt;ImageView
       android:id="@+id/imageView1"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_alignRight="@+id/resultLabel"
       android:layout_below="@+id/resultLabel"
       android:src="@drawable/image" /&gt;
  </code></pre>
  
  <p>And here's my code for the calculateButton:</p>
  
  <pre><code>     public void calculateClickHandler(View view) {
  
  
      if (view.getId() == R.id.calculateButton) {
  
      EditText weightText = (EditText) findViewById(R.id.weightText);
      EditText heightText = (EditText)findViewById(R.id.heightText);
      TextView resultText = (TextView)findViewById(R.id.resultLabel);
  
  
      int weight = (int) Float.parseFloat(weightText.getText().toString());
      int height = (int) Float.parseFloat(heightText.getText().toString());
              int bmiValue = calculateBMI(weight, height);
  
  
  
   String bmiInterpretation = interpretBMI(bmiValue);
  
   resultText.setText("Your BMI is:" + " " + bmiValue  + " " +  bmiInterpretation); }
  
      }
  
    private int calculateBMI (int weight, int height) {
  
      return (int)  weight * 703 / (height * height) ;
  
          }
     private String interpretBMI(int bmiValue) {
  
              if (bmiValue &lt;= 16.0 &amp;&amp; bmiValue &lt;= 18.5) {
                  return "Underweight";   
              } else if (bmiValue &gt; 18.5 &amp;&amp; bmiValue &lt;= 25 ){
                      return "Normal (Healthy)";
              } else if (bmiValue &gt; 25 &amp;&amp; bmiValue &lt;= 30  ) {
                  return "Overweight";
              } else {
                  return "Obese"; }
              }
  
                 }
  </code></pre>