ImageView displacement upwards and extinction when applied to the button
-
Question of animation Imageview♪
How do you put a picture on the button, crawling around the axis a little up and disappearing?
-
btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { imageView.animate().translationYBy(100).alpha(0).setDuration(1000); } }