layout - Android - Disable onClick highlight for one group in expandable list? -


i have expandablelistview backed implementation of baseexpandablelistadapter. first group in list functions header , not expandable. i've set ischildselectable() return false group , everything's functioning normally. however, when user clicks on non-expandable group, ui still highlights row. confusing , unnecessary visual cue i'd eliminate.

i can't set android:listselector="@android:color/transparent" on expandablelistview itself, because do want other list items highlighted upon click , expansion.

is possible suppress click highlighting first group (only)?

try set individual parent view's onclicklistener null getgroupview().

view getgroupview(int groupposition, boolean isexpanded, view convertview,             viewgroup parent) {     ...     convertview.setonclicklistener(null);     ... } 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -