그래서 sectioned listviews의 commonsware 예제 인 here을 사용하고 있습니다.하지만 다중 선택 옵션을 사용합니다. 문제는 내가 getCheckedItemPositions()를 얻을 때, 두 번째 섹션에서 선택했거나 위의 위치가 실제로 일치하지 않는 경우입니다. 섹션 헤더가 위치로 간주되므로 두 번째, 세 번째 섹션에서 확인 된 항목을 가져 오는 데 문제가 있습니다 ..... .....Section list "simple_list_item_multiple_choice"로 다이얼로그보기
0
A
답변
1
ListView
은 체크 된 상태를 추적하는 것이지 ListAdapter
. MergeAdapter
조차도 헤더가 무엇인지 알지 못합니다. 모든 내용은 헤더에 불과합니다.
MergeAdapter
은 헤더와 세부 행의 차이를 구체적으로 알고있는 것으로 확장 (또는 대체) 할 수 있습니다. 이 어댑터는 절대 위치 (ListView
보고 내용은 getCheckedItemPositions()
)를 해당 섹션 내의 섹션 및 위치로 변환하는 방법을 제공합니다.
또한 CommonsWare 서적, 오픈 소스 코드 등에 대한 지원을 위해 cw-android Google 그룹을 권장합니다.
관련 문제
- 1. Tableview with 2 section
- 2. Section headerview in UITableView Duplicated
- 3. setSeparatorStyle on only one section
- 4. UITableView의 문자열 값보기 Section Title
- 5. 다른 창에서 List List 항목보기
- 6. Smarty Section 선택한 링크를 굵게 만들기
- 7. HTML5, <section> 정렬되지 않은 목록
- 8. jquery selector : ID가 무언가로 시작됩니다 (키워드 "section")
- 9. Drupal - Breadcrumb 및 'In this section'
- 10. 단위 테스트 Refcounted Critical Section 클래스
- 11. List to List - AddRange (IEnumerable) 작업을 수행 할 수 없습니다.
- 12. qt ftp-> list() - ftp-> list()를 할 때
- 13. Generics 대 Array List
- 14. List 클래스의 형변환 문제
- 15. Digraph arc list implementation
- 16. List ListPicker onChangeedChanged
- 17. FTP LIST 명령 응답
- 18. [] operator for std :: list?
- 19. DropDown list onchange 이벤트
- 20. Makefile, modify list
- 21. PyGTK Horizontal List
- 22. List GetRange 오류가 C#
- 23. Json deserialize to list
- 24. CSS list-style-image
- 25. WPF Binding XML List
- 26. ruby list child pids
- 27. Generics (List) typing 질문
- 28. F # List 모듈 확장하기
- 29. DefaultModelBinder : IList vs List
- 30. log4j 메모리 'list appender'
addSection 메서드에서 SectionAdapter에 추가 된 어댑터에 대해 이야기하고 있습니까? – Maxrunner
아픈 안드로이드 구글 그룹에 다음 주제를 작성 .... – Maxrunner