오렌지 색상으로 Button의 표준 onClick 색상 (노란색)을 재정의하는 방법을 찾으려고합니다. (이 더 색상이 없는지 내가 본이 질문을 작성하는 동안 ,하지만 이미지)오버 클록 onClick 색상/드로어 블
그렇게 할 수있는 쉬운 방법이 있나요? 아니면 새로운 스타일을 써야합니까?
GIT에서 com.android.internal.R.attr.buttonStyle이 어떻게 보이는지 알았습니다. 그리고 저는 그 버튼 스타일을 복사하고 수정하기를 원합니다. 안드로이드 : 그 방법에 그것을 할 경우에, 나는, 나는 선택의 속성의 xmlns를 작성해야합니다 생각, XML-오류가
<?xml version="1.0" encoding="utf-8"?>
<selector>
<item
android:state_window_focused="false"
android:state_enabled="true"
android:drawable="@drawable/btn_default_normal"/>
<item
android:state_window_focused="false"
android:state_enabled="false"
android:drawable="@drawable/btn_default_normal_disable" />
<!-- Modified item -->
<item
android:state_pressed="true"
android:drawable="@drawable/btn_default_selected" />
<item
android:state_focused="true" android:state_enabled="true"
android:drawable="@drawable/btn_default_selected" />
<item
android:state_enabled="true"
android:drawable="@drawable/btn_default_normal" />
<item
android:state_focused="true"
android:drawable="@drawable/btn_default_normal_disable_focused" />
<item
android:drawable="@drawable/btn_default_normal_disable" />
</selector>
확인을 얻는다. "http://schemas.android.com/apk/res/android"로 채우면 다른 오류가 발생합니다. 이번에는 안드로이드의 drawable 리소스를 찾을 수 없기 때문에.
의견이 있으십니까?!
는뮤르
이것이 해결책이며, 지금 해 드리겠습니다. 고맙습니다. – Tima