Monday, September 12, 2011

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

The design requirements of the application are why I have to have an
Image and Text centered on the top of the screen.

On Sep 12, 2:07 pm, Adam Ratana <adam.rat...@gmail.com> wrote:
> My guess is you would want to try to enclose them in a containing view such
> as a LinearLayout, as far as the alignment/centering goes.  As far as the
> scaling goes, maybe some more information on exactly what is driving this
> need would be helpful to offer any more advice on that.
>
>
>
>
>
>
>
> On Monday, September 12, 2011 2:23:37 PM UTC-4, Dan wrote:
>
> > 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate