标签:
1.点击后改变颜色并保持颜色改变状态:
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/main_blue" android:state_activated="true" /> <item android:drawable="@color/dark_blue" android:state_activated="false" /> </selector>
并在OnChildClickListener中添加
view.setActivated(true);
Android 关于expandableListView childrenView 点击改变颜色
标签:
原文地址:http://www.cnblogs.com/shuaiwang/p/5109182.html