I am using Radio buttons as tab in my application.
I have loaded images for it, but they are aligning towards left side. how to make them align at center.
I tried all of the above and it doesn't work.
I had found a better solution which i would like to share.
Set your button to @null
; then add the drawable to android:drawableTop
or any other type of position. This will enable us to set the drawables to other position of the radioButton. add some padding
or drawablePadding
so that it will not stick to any side of the button/text.
android:background="@drawable/background_paint"
android:drawableTop="@drawable/shape"
android:button="@null"