Here is my layout:
The issue I\'m facing is with the drawable checkmark. H
Set android:paddingLeft
inside your first button. This will force the drawableLeft
by paddingLeft
amount to the right. This is the fast/hacky solution.
Instead of using a ButtonView, use a LinearLayout that contains both a textview and imageview. This is a better solution. It gives you more flexibility in the positioning of the checkmark.
Replace your ButtonView with the following code. You need the LinearLayout
and TextView
to use buttonBarButtonStyle
so that the background colors are correct on selection and the text size is correct. You need to set android:background="#0000"
for the children, so that only the LinearLayout handles the background coloring.
Here are some screenshots I took while trying this out.