I want to hide an image and then make it visible after 10-20 seconds.
Here is my code:
public class MainActivity extends Activity implements OnClickListener{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ImageView imgv1 = (ImageView) findViewById(R.id.cool);
imgv1.setOnClickListener(this);
// This is the image which I want to first hide and then show it after few seconds
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public void onClick(View v) {
Intent startactivity = new Intent(this,signin.class);
startActivity(startactivity);
}
}