简体   繁体   中英

How to make button invisible when end of the list is reached in android

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.

You can use AlphaAnimation

just set the Animation on the Button and start it when u reach the end

AlphaAnimtion Example

Update :

ScrollView Reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM