As ramaral posted seven code:
In the Layout of your Activity you must declare an ImageView
If you want it to be visible only after pressing a button you should include the android attribute: visibility="invisible"
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/imageView1"
android:visibility="invisible"
android:src="@drawable/nomeDaSuaImagem" />
In the Activity code, on the button's onClick, make it visible:
'Button button1; ImageView imageView1;
imageView1 = (ImageView) findViewById (R.id.imageView1); button1 = (Button) findViewById (R.id.button1); button1.setOnClickListener (new View.OnClickListener () {
@Override
public void onClick(View v) {
imageView1.setVisibility(View.VISIBLE;
}
}); '
I'd like to know if there's any way to hide it behind the buttons.