1
as the ramaral posted seven code:
In your Activity Layout you must declare an Imageview
If you want it to be only visible after pressing a button you should include the android:visibility="Invisible attribute"
<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, in the onClick of the button, 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 wonder if there’s any way she can hide behind the buttons .
Only use one
FrameLayout
, which guides the provision ofViews
as if it were a stack. Overlapping as the declaration.– Wakim
Just use the
bringToFront
inImageView
. On devices prior to 4.4 it is necessary to execute arequestLayout
followed by ainvalidate
afterward.– Wakim