我正试图在单选按钮旁边设置一个图像,但图像太大而基本上不能覆盖整个图像。
This is what I'm ending up with currently
<RadioButton
android:layout_height="20dp"
android:layout_width="wrap_content"
android:drawableRight="@drawable/incorrect_img"
android:id="@+id/q3_wrong1"
android:text="@string/q3_choice1" />
答案 0 :(得分:0)
试试这个:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RadioButton
android:id="@id/rb_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:layout_width="your width"
android:layout_height="your height"
/>
</LinearLayout>