问题
In my application i have gallery view , i am displaying images from database in gallery,i need to place a text view on gallery item and change the text view value based on gallery position.So,how i can place text view on gallery.please can any one help me.
Thanking in Advance.
回答1:
Use custom adapter for you gallery view. Every item will contain an ImageView and also a TextView, for example in a RelativeLayout.
Example here: Android gallery with caption
来源:https://stackoverflow.com/questions/17965420/how-to-place-a-textview-on-gallery-in-android