Hi,

I'd like to position an ImageView right of a TextView which has
SingeLine set to "true". What happens is that if the string in the
TextView is too long, the ImageView gets pushed out of the screen and
gets not displayed! Does anyone have an idea how to prevent that?

To clarify, here is what I want to have:

|Text              Image|

...with the TextView aligned left, and the Image aligned right. Right
now I do this with a horizontal LinearLayout containing a TextView and
an ImageView encapsulated in another LinearLayout that has
align="right" (align doesn't work with ImageView, unfortunately).

It works fine for short strings, but if the string gets too long, the
ImageView gets shrinked (ignoring any minWidth attributes...) or even
not displayed at all. It looks like first the TextView gets assigned
as much width as it needs, even the whole screen width if the string
is very long, and only then the ImageView gets drawn - if there is any
space left. Is there a way to force the ImageView to get displayed
regardless of how wide the TextView wants to grow?

I'd really appreciate some help here!

Thanks,

        -Andre

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to