如何放置在画廊一个TextView android系统? [英] How to place a textview on Gallery in android?

查看:119
本文介绍了如何放置在画廊一个TextView android系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用我有图库查看,我在画廊显示从数据库中的图像,我需要根据画廊position.So,我如何能在放置文本视图上放置库项目的文本查看和更改文本视图值gallery.please任何一个可以帮助我。

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.

感谢在前进。

推荐答案

使用自定义适配器为您的画廊视图。每一个项目将包含在RelativeLayout的一个ImageView的,也是一个TextView,例如。

Use custom adapter for you gallery view. Every item will contain an ImageView and also a TextView, for example in a RelativeLayout.

在这里例子:<一href=\"http://stackoverflow.com/questions/6448107/android-gallery-with-caption/6449937#6449937\">Android画廊与标题

这篇关于如何放置在画廊一个TextView android系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆