从xml中改变checkBox大小和形状
16lz
2021-01-23
主程序很简单了
setContentView(R.layout.main);
看一下main
<?xml version="1.0" encoding="utf-8"?>android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <?xml version="1.0" encoding="utf-8"?>android:layout_height="wrap_content" android:text="a checkbox" /> android:layout_height="wrap_content" android:text="checked checkbox" android:checked="true" /> android:layout_height="wrap_content" android:text="new checkbox" android:background="@drawable/checkbox_background" android:button="@drawable/checkbox" /> android:layout_height="wrap_content" android:text="new checked checkbox" android:checked="true" android:background="@drawable/checkbox_background" android:button="@drawable/checkbox" /> //schemas.android.com/apk/res/android
下载地址:http://www.eoeandroid.com/thread-28706-1-1.html