自定义CheckedTextView的ListView控件 [英] Customize the CheckedTextView for ListView

查看:155
本文介绍了自定义CheckedTextView的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屋!

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