naver / android-pull-to-refresh

Pull To Refresh Views for Android! v3.2.3
Apache License 2.0
310 stars 82 forks source link

Can't I set divider color in listview? #1

Closed cqbqdd11519 closed 10 years ago

cqbqdd11519 commented 10 years ago

in normal listview, i can change divider color by setDivider and setDividerHeight. But I can't do the same thing in pull-to-refresh listview..

can't i change divider color programmatically?

ncoolz commented 10 years ago

You can get an actual list view from PullToRefreshListView instance by calling getRefreshableView()

ListView actualListView = pullToRefreshListView.getRefreshableView();

and call divider methods like below,

 actualListView.setDivider(new ColorDrawable(0xff00ff00 /* color */ ));
 actualListView.setDividerHeight(3 /* size */);
cqbqdd11519 commented 10 years ago

한국분이셨구나....ㅋㅋㅋ괜히 영어로..... 해결됐네요 감사합니다!

ncoolz commented 10 years ago

아 넵 ㅎㅎ 감사합니다 해결되었다니 다행이네요~ 이슈는 닫을게요!

the issue has been solved

issacbalaji commented 9 years ago

<ListView android:id="@+id/listView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:divider="#466sdd" android:dividerHeight="1px"