Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ib1.setOnClickListener(new View.OnClickListener() {
- public void onClick(View v) {
- if(isPressed)
- ib1.setBackgroundResource(R.drawable.star_pressed);
- else
- ib1.setBackgroundResource(R.drawable.star_unpressed);
- isPressed = true;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement