display imageView
<p>if i have an ImageView and i want to display it if sum = 10 otherwise it must be hidden
how can i do this in java </p>

<pre><code> &lt;ImageView android:id="@+id/a"
            android:src="@drawable/cancel" 
            android:layout_width="25dp"
            android:layout_height="50dp"
            android:layout_marginTop="20dp"
              android:layout_marginLeft="20dp"
            android:contentDescription="@string/delete"

           &gt;&lt;/ImageView&gt;
</code></pre>

<p>thansk </p>
