1
I’m having a doubt how to set a time to image that was opened close. It would be a loop?
I’m using ImageView
:
<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);
}
});
ai imagen is visible, so when passing a few seconds it becomes invisible.
Your question is very wide, could you elaborate a little better? Try to post some code that you have tried to implement
– rsicarelli
improved the issue.
– Vale