开发者

How to disable background child highlight in expandable list

I have a pretty long expandable list with lots of children unde开发者_如何学JAVAr each group. When a group is expanded and I perform scroll action, I see background behind children becomes dark untill scroll stopps.

Does anybody know how to disable this effect?


Found a solution:

Either in *.xml file add

android:scrollingCache="false"

or in the code add

getExpandableListView().setScrollingCacheEnabled(false);

without doing that, ExpandableList background was changing to dark like all children got background changed to dark. This could be seen when background is of bright color.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜