I am using HorizontalScrollView to display list of items to user. I want to make two buttons at both ends of list to indicate if there are items remaining on its respective side. So the button must disappear after end of the list is reached on its side. How to invoke this type of behavior in button.
Asked
Active
Viewed 60 times
0
-
Two options: you can make the button transparent or you can make its height equal to 0dp. – confused_at_times May 01 '14 at 20:29
-
But my buttons and HorizontalScrollView are different views. How do I pass a message to buttons each time when a scrolling take place in HorizontalScrollView – user3265443 May 01 '14 at 21:40
1 Answers
0
You can use AlphaAnimation
just set the Animation on the Button and start it when u reach the end
Update :

Community
- 1
- 1
-
But my buttons and HorizontalScrollView are two different views. How do I pass a message to buttons each time when a scrolling take place in HorizontalScrollView? – user3265443 May 01 '14 at 21:40
-
1do u want the arrows to disappear when u reach the last item or something else? – May 01 '14 at 21:53