[英]Can ImageView in android.widget.Gallery be framed with a View that includes picture title below?
I am interested in using the Horizontal Gallery widget. 我对使用Horizontal Gallery小部件感兴趣。 I know how to put a selected frame around the ImageView but can I put the ImageView inside a larger view and have say a TextView above and below?
我知道如何在ImageView周围放置一个选定的框架,但是我可以将ImageView放在一个较大的视图内,并且在上下分别说一个TextView吗? Thanks
谢谢
使用自定义适配器,并为包含imageView和textview的自定义视图添加充气,请参见: http : //www.javacodegeeks.com/2011/09/android-gallery-view-without-pictures.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.