自定义CheckedTextView的ListView控件 [英] Customize the CheckedTextView for ListView
问题描述
据我所知,在ListView嵌入CheckedTextView形成名单,但每CheckedTextView只有一个TextView的和一个复选框。我想要做的是增加了一些TextViews到CheckedTextView,像这样的内容:
As far as I know, the ListView embeds CheckedTextView to form the list, but every CheckedTextView has only one TextView and a CheckBox. What I want to do is adding some TextViews to the CheckedTextView, like this:
如何自定义CheckedTextView?任何帮助将AP preciated!
How to customize the CheckedTextView? Any help will be appreciated!
推荐答案
对于您需要创建一个自定义的的LinearLayout
实现可勾选
和创建 row.xml
的LinearLayout 这将作为<$ C $> C>可勾选。 在这里
是一个不错的教程解释相同用一个例子
For that you need to create a custom LinearLayout
that implements Checkable
and the create your row.xml
using that custom LinearLayout
which will work as Checkable
. Here
is a nice tutorial explaining the same with an example.
这篇关于自定义CheckedTextView的ListView控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!