开发者

How to disable background child highlight in expandable list

开发者 https://www.devze.com 2023-02-10 20:29 出处:网络
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 until

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

精彩评论

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