如何在android可扩展列表视图中获取多个复选框值?带有多个CheckBox的Android ExpandableListView
0
A
回答
0
我不是100%确定的,因为我自己还没有这样做,但是我会尝试让您的ListView项目(您在每个列表项目中使用的布局)抽屉,然后从在那里,我会假设你希望他们取决于如果你需要他们或不填充,所以我会使用的东西沿着
final Button btnLogin = new Button(this);
btnLogin.setText("Login");
btnLogin.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
btnLogin.setGravity(Gravity.CENTER);
btnLogin.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
new GetDataFromServlet().execute(NetworkActivity.this);
Log.i(getClass().getSimpleName(), "button was pressed");
}
});
的线,但作为一个复选框,而不是一个按钮
0
这里的在ExpandableListView中实现复选框的示例程序: mylifewithandroid.blogspot.com: Expandable lists and check boxes
相关问题
- 1. ExpandableListView groupIndicator被禁用了CheckBox
- 2. 具有2个子级别的Android ExpandableListView
- 3. 使用带有TextView和CheckBox的Custome ListView单选CheckBox
- 4. 带有CheckBox和可选项目的Android ListView
- 5. ANDROID - ExpandableListView
- 6. Android中的ExpandableListView
- 7. 带有TextWrapping的WPF CheckBox样式
- 8. 带有HierarchicalCollectionView的CheckBox标题渲染器
- 9. Android中的AlarmManager带有多个闹钟
- 10. 的Android ExpandableListView错误
- 11. 3级ExpandableListView Android
- 12. Android - TableLayout to ExpandableListView
- 13. Android ExpandableListView GroupIndicator gravity
- 14. ExpandableListView单为Android
- 15. 的CheckBox Android Studio中
- 16. 多层ExpandableListView
- 17. 的CheckBox将自动取消选中时ExpandableListView扩大
- 18. 带有多个viewcontollers的UITableView
- 19. 带有多个MenuItems的ActionBarSherlock?
- 20. 带有多个Kinect的PointCloud
- 21. 带有getElementById()的多个ID;
- 22. ExpandableListView Mono for Android,ClickEvents
- 23. Android ExpandableListVIew使用BaseExpandableListAdapter
- 24. 用Android Swap扫描Android ExpandableListView
- 25. 带有大字体的多行CheckBox上的左上方框对齐
- 26. Android中的不同值ExpandableListView
- 27. Android的检测ChildClick在ExpandableListView
- 28. ExpandableListView中的Android分隔符
- 29. 的Android expandablelistview使用凌空
- 30. 带有Apache/Tomcat的ReverseProxy多个DNS,带有SSL的单个webapp