- 작성시간 : 2013/12/28 20:40
- 퍼머링크 : always19.egloos.com/2964934
- 덧글수 : 0
adapter의 adapter를 쓰고 싶을 때가 있다.
iphone에서는 TableView가 section header, item을 다 보여줄 수 있게 지원하는데,
android에서는 1단계 adapter만 있으니까 불편하다.
adapter를 중복해서 2단계로 쓸 수 있는 library가 있었다.
addAdapter()로 adapter를 추가할 수 있는 것은 좋은데, section header는 지원하지 않으니까 좀 아쉽네.
header 부분마다 1줄짜리 section에 해당하는 adapter를 add하는 것은 좀 오버 같다.
는 파일 2개로 되어 있다.
그런데, 프로젝트 파일 1개에 dependent하다.
This Android library project is available as a JAR. If you wish to use the JAR, you will need to also add the JAR from the CWAC-Sacklist project to your project
를 보면 알 수 있다.
그냥 adapter 1개로 해결하는 방법이 나을 수도 있겠다.



덧글