1
다른 상태에 대해 드로어 블의 각 항목에 대해 주어진 png로 드로어 블을 정의 했으므로 해당 항목에 대해 png 주위에 테두리를 갖고 싶다면 어떻게해야합니까? PNG를 다시 자르면 옵션이 아닙니다. 내가 가장 찾을png를 사용하는 체크 박스에 테두리를 추가하는 방법
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:state_focused="true"
android:drawable="@drawable/box_checked_png” />
<item android:state_checked="false" android:state_focused="true"
android:drawable="@drawable/white_box_png” />
<item android:state_checked="false"
android:drawable="@drawable/white_box_png” />
<item android:state_checked="true"
android:drawable="@drawable/box_checked_png” />
</selector>
감사 칼린! drawable이 'checked'상태이면 box_checked_png가 표시됩니다. – lannyf