Michael Dorin wrote: > I have a LinearLayout, horizontal, with an EditText and a ImageView. > I want everything on oneline but the imageView shoved as far right as > possible, > and the EditText as far left as possible. The ImageView holds a small icon. > I want the EditText to consume the rest of the space on the line. > > I have played with layout_gravity and layout_weight, but the objects remain > butted up to each other. > > I have layout_width set to "fill_parent" but have also tried wrap_content. > > Any suggestions would be appreciated.
Somebody asked a closely related question not that long ago on StackOverflow: http://stackoverflow.com/questions/2307655/align-layout-to-the-right-in-a-listview-row -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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

