안드로이드 2.3.4 체크 박스의 비트 맵을 변경했으며 비트 맵의 크기를 설정하여 크기를 조정하려고합니다. 나는이 같은 확인란 변경 : 당김 일치하는 XML을안드로이드 확인란의 버튼 크기를 변경하는 방법은 무엇입니까?
<CheckBox
android:id="@+id/cb1"
android:button="@drawable/checkbox"
android:layout_alignParentLeft="true"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Sort: 1" />
을
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:state_focused="true" android:drawable="@drawable/checkbox_on_background_focus_yellow"/>
<item android:state_checked="false" android:state_focused="true" android:drawable="@drawable/checkbox_off_background_focus_yellow"/>
<item android:state_checked="false" android:drawable="@drawable/checkbox_off_background" />
<item android:state_checked="true" android:drawable="@drawable/checkbox_on_background" />
</selector>
어떻게 확인란의 비트 맵의 크기를 변경하는 딥/DP 값을 설정할 수 있습니까?
내가 무슨 뜻인지 모르겠다. 좀 더 정확하게 할 수 있겠 니? – HardCoder