当previous行的复选框被选中的列表视图显示下一行 [英] Show next row in listview when previous row's checkbox is checked
问题描述
我有问题就到ListView和复选框
我米创建自定义的的ListView
使用以下 JSON
数据
I have Question regarding to Listview and CheckBox
I m creating a custom ListView
using following JSON
data
{
"title": "Amount Field",
"settingItems": [
{
"title": "Manual Entry",
"type": "boolean",
"value": true
},
{
"title": "Predefined Amount",
"type": "Amount",
"value": 0.00
},
{
"title": "Drop Down Amount Menu",
"type": "boolean",
"value": false
},
{
"title": "",
"type": "Amount",
"value": 0.00
}
]
}
使用上述数据我成功我列表视图
也是在列表的末尾,即在IM列表视图显示下拉按钮添加量的最后一个项目。现在,我应该要
当我检查的ListView
的下拉菜单金额则的listItem最后一行必须是可见的还反之亦然
又该code具有写进去getView方法
Using above data I have managed my Listview
also At the end of list i.e. at last item of listview i m showing dropDown Button to add Amount. Now What should I want
when I check Drop Down Amount Menu listItem of ListView
then the last row must be visible also Vise-Versa
what should the code have to write into getView method
推荐答案
您可以设置布局可见和Invisibile使用view.setVisibility(View.VISIBLE)或view.setVisibility(View.INVISIBLE)
you can set Layout Visible and Invisibile Using view.setVisibility(View.VISIBLE) or view.setVisibility(View.INVISIBLE)
这篇关于当previous行的复选框被选中的列表视图显示下一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!