Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- button1.setOnClickListener(new View.OnClickListener(){
- public void onClick(View v){
- ImageView img = (ImageView)findViewById(R.id.imageView1);
- img.setBackgroundResource(R.drawable.frame_animation);
- myFrameAnimation=(AnimationDrawable) img.getBackground();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement