Monday, September 12, 2011

[android-developers] How can I center an ImageView and TextView together?

I need to make a heading with an ImageView and TextView that are
centered together, like the following diagram.

(please use a monospaced font to see this diagram)
--------------------------------
| |
| ----------- ---------- |
| -ImageView- -TextView- |
| ----------- ---------- |
| |
| -Other Content- |
| |
The ImageView must be scaled to the height of the TextView and
together they must be centered as if they were one widget. Any ideas
on how to accomplish this?

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

No comments:

Post a Comment