Click and add a widget
<p>How do I get when the User clicks a button to view the program as spinners who are gone?
My code is this:</p>

<pre><code> public void onClick(View arg0) {
            // TODO Auto-generated method stub
            x++;

        if(x==1)
            cred1.setVisibility(View.VISIBLE);

        if(x==2)
            cred1.setVisibility(View.VISIBLE);

        if(x==3)
            cred3.setVisibility(View.VISIBLE);



        }
</code></pre>
