在微调多列? [英] Multiple Columns on a Spinner?
问题描述
我一直在试图为年龄和年龄来获得一个自定义的微调工作,基本上没有什么会工作。
I've been trying for ages and ages to get a custom spinner to work and basically nothing will work.
我一直是这样的后:
http://www.f1-manager.co.uk/Misc/ CustomSpinner.png
基本上我想显示从数据库中,第一个名字3项,姓氏和对其他信息的比特信息其他位,然后当然是画面说的人。
Basically I want to display 3 items from a database, the first name, last name and some other bits of information on the Other Info bit and then of course a picture of said person.
这甚至可能吗?有人告诉我,使用自定义微调可以实现这一点,但我不能找到一个足够好的例子来帮助我。
Is this even possible? I was told that using a custom spinner can achieve this but I can't find a good enough example to help me.
任何帮助将是巨大的。 : - )
Any help would be great. :-)
谢谢,
克里斯
Thanks, Chris
推荐答案
使用一个 TableLayout 的设计在微调中的项目的用户界面。然后在你的适配器,只需填写布局的内容,就像任何其他的布局。
Use a TableLayout to design the UI for the items in the spinner. Then in your adapter, just fill out the layout content as you would any other layout.
下面是我的意思版式设计:
Here is layout design of what I mean:
TableLayout
TableRow
TextView -> FirstNameHeader
TextView -> LastNameHeader
TableRow
TextView -> FirstNameData
TextView -> LastNameData
TableRow
TextView -> OtherData
这篇关于在微调多列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!