attr android:activatedBackgroundIndicator 기본 색깔이 파란색으로 되어있는데 이 색깔을 변경하고 싶으면 Custom Style의 activatedBackgroundIndicator Attribute를 수정해야 한다.
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:activatedBackgroundIndicator">@drawable/list_activated_background</item>
</style>
drawable 리소스 폴더에 list_activated_background 파일 생성
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:drawable="@color/OrangeLight" />
<item android:state_checked="true" android:drawable="@color/OrangeDark" />
<item android:state_pressed="true" android:drawable="@color/OrangeDark" />
<item android:drawable="@android:color/transparent" />
</selector>
참조
http://stackoverflow.com/questions/19038322/change-color-of-androidactivatedbackgroundindicator
'Android' 카테고리의 다른 글
This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in. (0) | 2015.04.07 |
---|---|
GCM 서버키 등록하는 방법 (0) | 2015.03.26 |
Android Studio에서 ButterKnifeZelezny Plugin 설치 (0) | 2015.02.09 |
안드로이드에서 이미지 다루기 용현택 (0) | 2015.01.28 |
ImageView의 사진을 Bitmap으로 가져오기 (0) | 2015.01.24 |