Basically what I want is to have is a checkbox with the icon and the text below to the icon, something like this:
-------------------
| CheckBox Icon |
| |
| CheckBox Text |
| |
-------------------
By default the icon is placed in the left and the text in the right, both of them at the same level. Below the layout I'm using:
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Switch state"
android:button="@drawable/my_custom_selector" />
Any idea about how can I achieve to have the icon on top and the text below the icon?. Thanks in advance :)
I had the same problem and I have solved it using this:
android:button="@null"
android:drawableTop="?android:attr/listChoiceIndicatorMultiple"