Android alternative to setVisibility to Display images onscreen
<p>First, I am very new at this and teaching myself so I am not asking you to code it for me.  Just give me some terms, topics or a subject to study and I will hit the books and figure it out.</p>

<p>I am making an app where user sets what appears on screen by pressing a button or selecting an image.  The only way I know how to do this is have an onClickListener set a variable and use a switch statement to display an imageView that corresponds to the variable selected.</p>

<p>example:</p>

<pre><code>    //on click listeners set variable userPic1 and userPic2

    switch(userPic1){
    case 1:
        pic11.setVisibility(View.VISIBLE);
        pic12.setVisibility(View.GONE);
        pic13.setVisibility(View.GONE);
        pic14.setVisibility(View.GONE);
        break;
    case 2:
        pic11.setVisibility(View.GONE);
        pic12.setVisibility(View.VISIBLE);
        pic13.setVisibility(View.GONE);
        pic14.setVisibility(View.GONE);
        break;
    case 3:
        pic11.setVisibility(View.GONE);
        pic12.setVisibility(View.GONE);
        pic13.setVisibility(View.VISIBLE);
        pic14.setVisibility(View.GONE);
        break;
    case 4:
        pic11.setVisibility(View.GONE);
        pic12.setVisibility(View.GONE);
        pic13.setVisibility(View.GONE);
        pic14.setVisibility(View.VISIBLE);
        break;
    }


    switch(userPic2){
    case 1:
        pic21.setVisibility(View.VISIBLE);
        pic22.setVisibility(View.GONE);
        pic23.setVisibility(View.GONE);
        pic24.setVisibility(View.GONE);
        break;
    case 2:
        pic21.setVisibility(View.GONE);
        pic22.setVisibility(View.VISIBLE);
        pic23.setVisibility(View.GONE);
        pic24.setVisibility(View.GONE);
        break;
    case 3:
        pic21.setVisibility(View.GONE);
        pic22.setVisibility(View.GONE);
        pic23.setVisibility(View.VISIBLE);
        pic24.setVisibility(View.GONE);
        break;
    case 4:
        pic21.setVisibility(View.GONE);
        pic22.setVisibility(View.GONE);
        pic23.setVisibility(View.GONE);
        pic24.setVisibility(View.VISIBLE);
        break;
    }       
}
</code></pre>

<p>I feel like there is probably a better way to code this, but the bigger problem is in my XML layouts I have all of these imageViews stacked on top of each other and its getting difficult to see how they will look because its just a mess.</p>

<p>Any help is appreciated</p>
