0
我通过ArrayAdapter与复选框使用ListActivity。
我想要做的是添加ListView项目动态与不同的布局(仅限TextView)当checkBox被检查。 也应该在再次取消选中后消失。
在复选框添加ListView项目检查与不同的格式
CheckBox unchecked:
+----------------------+
| cb -- some text -- |
+----------------------+
| - new Heading - |
+----------------------+
| etc. |
+----------------------+
CheckBox checked:
+----------------------+
| cb -- some text -- |
+----------------------+
| --- TextView --- |
+----------------------+
| --- TextView --- |
+----------------------+
| - new Heading - |
+----------------------+
| etc. |
+----------------------+
什么是实现这一目标的最佳方式是什么?
谢谢您的快速回答!我已经找到了我一直在寻找的偏好:依赖。 – user1163881 2012-04-07 14:56:32