Hi, I've a TableLayout filled with buttons, and inside these buttons
I've placed a word (text) with an Image as background. This image has
a small picture in the middle and the rest of it is a plain
background. I'd like to place the text a little bit below the image,
but I've only managed to place it in the base of the button by using
android:gravity="center|bottom". I've tried using padding with no
result.

Reading through the documentation I came across AXIS_Y_SHIFT and
VERTICAL_GRAVITY_MASK and thought that maybe they could help me, but I
haven't found any documentation apart from what's written in the API.

"Binary mask to get the vertical gravity of a gravity.
Constant Value: 112 (0x00000070)"

Which doesn't help me at all.

Does anyone know if these attributes would help and, in such a case,
explain how to use them?

I'm thinking I could use Button + TextView and applypadding to the
TextView, but I feel there must be a cleaner solution.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to