> 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?
Don't use a LinearLayout and android:layout_width="wrap_content" for the TextView. Either of the following should work: 1. Use android:layout_width="0px" and android:layout_weight="1" for the TextView. This says "use all space not used by the rest of this row". 2. Use RelativeLayout instead of LinearLayout and make the TextView use android:layout_toLeftOf="...", where ... is the ID of your ImageView. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

