I have four radio button.
xml source
<RadioButton
android:id="@+id/fragBtn1"
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="@drawable/btn_bg_selector"
android:button="@null"
android:drawableTop="@drawable/btn_img_selector" />
btn_img_selector
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/selected_btn" android:gravity="center" android:state_checked="true"/>
<item android:drawable="@drawable/nonselected_btn" android:gravity="center"/>
</selector>
btn_bg_selector
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/btnPressed" android:state_pressed="true"/>
<item android:drawable="@color/btnNonPressed"/>
</selector>
But button image is too big.
I want to decrease a button image size only..(not decrease button size)
For example, I want to scale a button image size 30px * 30px.
Is it possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…