显示的ImageView和TextView的在库 [英] Showing ImageView and TextView in Gallery
本文介绍了显示的ImageView和TextView的在库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何显示的TextView和ImageView的无论是在一个画廊查看。我想显示图片标题只是它下面每一个形象。
How to show TextView and ImageView both in a single Gallery View . I want to show Image title for each image just below it.
推荐答案
创建一个使用自定义布局的的LinearLayout
或 RelativeLayout的
来定位您的TextView
和的ImageView
。然后,使用该布局与您的 SimpleCursorAdapter
,你交给了图库
。
Create a custom layout that uses a LinearLayout
or RelativeLayout
to position your TextView
and ImageView
. Then, use that layout with your SimpleCursorAdapter
that you hand to the Gallery
.
这篇关于显示的ImageView和TextView的在库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文