마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

TextView 클릭시 색상, 폰트 변경

0 추천
android:textColor="@color/~~~~~~"
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item style="@style/~~~on" android:color="#121212" android:state_pressed="true" />
    <item style="@style/~~~off" android:color="#343434" android:state_pressed="false" />
</selector>
<style name="main_tab_menu_off">
    <item name="android:textStyle">normal</item>
</style>
<style name="main_tab_menu_on" state_pressed="true">
    <item name="android:textStyle">bold</item>
</style>

 
이렇게 했는데 색상은 클릭시 변경되는데.. 스타일에 적용된 스타일이 적용안되네요 ㅠㅠ 
익명사용자 님이 2016년 10월 13일 질문

1개의 답변

0 추천
aucd29 (218,390 포인트) 님이 2016년 10월 14일 답변
...