make visible ProgressBar from another class
<p>I want to display ProgressBar of MainActivity from another class.</p>

<p>Here is Layout xml file of MainActivity and java class name is main.java.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/tabBar"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="#0844aa"
    android:orientation="horizontal" &gt;
    &lt;ProgressBar
        android:id="@+id/progressBar1"
        style="?android:attr/progressBarStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:visibility="invisible" /&gt;    
&lt;/LinearLayout&gt;
</code></pre>

<p>And default is invisible for ProgressBar. But I want to make "visible" this ProgressBar from another class called <strong>"subclass.java"</strong>. </p>
