tag:blogger.com,1999:blog-4023775337223455601.post2165541858516078679..comments2024-02-17T15:03:14.887+05:30Comments on Vardhan Blog - My Experiences: Android: Highlighting the selected item in the ExpandableListViewVardhan DShttp://www.blogger.com/profile/06902854396009389430noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-4023775337223455601.post-82302309856375849772017-02-18T20:14:54.017+05:302017-02-18T20:14:54.017+05:30how to change the text color of selected child and...how to change the text color of selected child and headerAnonymoushttps://www.blogger.com/profile/18405589187829223521noreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-62372618779140165782016-04-25T16:21:24.545+05:302016-04-25T16:21:24.545+05:30how can i set selector color in child of multileve...how can i set selector color in child of multilevel expandable listview?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-67639779001672053022016-03-28T15:25:53.363+05:302016-03-28T15:25:53.363+05:30can you help in how to highlight child if it is mu...can you help in how to highlight child if it is multilevel expandable list viewAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-87378358280070458042016-03-28T15:22:51.686+05:302016-03-28T15:22:51.686+05:30can you help in how to highlight if it is multilev...can you help in how to highlight if it is multilevel expandable list viewAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-80779951221336206302015-06-22T12:55:47.048+05:302015-06-22T12:55:47.048+05:30i too facing this problem. how to fix this ??? Can...i too facing this problem. how to fix this ??? Can any one tell me about this<br /><br />Thanks in advanceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-41072791692188595212014-10-02T15:00:38.419+05:302014-10-02T15:00:38.419+05:30Also you can add select effect to group:
...Also you can add select effect to group:<br /><br /> mDrawerList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {<br /> @Override<br /> public boolean onGroupClick(ExpandableListView parent, View view, int groupPosition, long id) {<br /> int index = parent.getFlatListPosition(ExpandableListView<br /> .getPackedPositionForGroup(groupPosition));<br /> parent.setItemChecked(index, true);<br /> return false;<br /> }<br /> });Anonymoushttps://www.blogger.com/profile/04555303182320905643noreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-44022441608138863042014-04-08T11:36:27.444+05:302014-04-08T11:36:27.444+05:30Yes it happened with me too. The highlight moves t...Yes it happened with me too. The highlight moves to another record on expanding or collapsing a group. This happens only for devices with API level below 11.DevAndroidhttps://www.blogger.com/profile/14351018035156627578noreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-31757479350425247832014-01-22T12:00:28.776+05:302014-01-22T12:00:28.776+05:30Thanks a lot!
This works with 'CHOICE_MODE_MUL...Thanks a lot!<br />This works with 'CHOICE_MODE_MULTIPLE_MODAL'.<br />Futuer, you can use ' android:background="?android:attr/activatedBackgroundIndicator" ' in the list item layout.<br />This gives android themed selection indicator.Anonymoushttps://www.blogger.com/profile/02073732221995058139noreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-55695071007919947252013-11-29T13:11:42.987+05:302013-11-29T13:11:42.987+05:30When you collapse the group, the highlight won'...When you collapse the group, the highlight won't be available. You should click the child record to get again the highlight colour. <br /><br />But I am surprised with the <br />"After collapse and expand again it does not work .. the highlight moved to another record " comment. <br /><br />If possible share the code. Vardhan DShttps://www.blogger.com/profile/06902854396009389430noreply@blogger.comtag:blogger.com,1999:blog-4023775337223455601.post-16137673637915051982013-11-27T13:53:03.131+05:302013-11-27T13:53:03.131+05:30Thanks for the tutorial brother. but there is a pr...Thanks for the tutorial brother. but there is a problem:<br /><br />After collapse and expand again it does not work .. the highlight moved to another record Anonymoushttps://www.blogger.com/profile/03758272102257419504noreply@blogger.com