如何在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