English 中文(简体)
Multicolumn ListView in Anthony text, Image and RadioButton
原标题:Multicolumn ListView in Android showing text, image and RadioButton

我一直在安乐施会工作,我希望在文稿、图像和广播电台台上展示多科文:。 尽管我阅读了很少的博客,这些博客使我可以选择使用<条码>。 我仍然怀疑应该使用什么。

任何人都可以对如何实施同样做法表示担忧。 或许有些提法也是有益的。

最佳回答

您需要根据名单顺序排列清单,并需要创建你提到的内容。

<LinearLayout android:layout_height="wrap_content" android:layout_width="fill_parent"
         android:orientation="horizontal">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/list_item_text" android:text="item text" android:weight="1"/>
<ImageView android:layout_width="50dp" android:layout_height="50dp" android:id="@+id/list_image" />
<RadioButton android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>

您的习俗认为这种守则,但对于无线电台,你必须检查编码,并保持无线电台的状态。 由于在表1中,只有1个无线电台,因此无法与无线电组纽州保持。

now you need to create the custom adapter ok here is the link for listview check this how you can create your custom adapter

问题回答

创立一个名单Adapter子类,超越了收听器方法,以回复含有你需要的成分的习俗观点。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签