HeaderListView (https://github.com/applidium/HeaderListView) 및 내비게이션 서랍 페이지 슬라이딩 탭 스트립 (https://github.com/Balaji-K13/Navigation-drawer-page-sliding-tab-strip)을 사용하고 있습니다. 마지막 라이브러리에서, 나는 방법의 컨텐츠를 onCreateView 구현 PageContentStripFragment 클래스했습니다 : 제대로 작동HeaderListView : RowView에서 배경색을 변경하는 방법
HeaderListView list = new HeaderListView(getActivity(),null);
list.setAdapter(new ListViewSectionAdapter());
을! 따라서 ListViewSectionAdapter은 SectionAdapter의 하위 클래스입니다. 오버 라이드 getRowView 메서드에서 "custom_row_list"라는 레이아웃을 부풀렸다. 그래서 RowItem을 선택할 때 사용자 지정 배경색을 설정하려고합니다. 내가 당김 선택하고 custom_row_list.xml 설정했다 :
android:background="@drawable/list_selector"
그러나이 작동하지 않습니다! 내가 뭘 잘못 했니 ??
내 환경은 ADT eclipse + android 4.4.2입니다.
감사합니다.
나를 위해 작동하지 않습니다. 그러나 나는 StickyListHeaders를 시도한다. 정말로, 그것은 더 좋다!! 감사. – JamesMartins