sdphil wrote: > hm... i think i'm missing something here. how do i specify > layout_width as "the rest of the space that's left"
For a LinearLayout, you can use android:layout_width="0px" and android:layout_weight="1". The non-zero weight indicates that you want the TextView to absorb any excess space left over in the row, after calculating all other sizes. > I have a button of fixed size (or wrap_content) on the left, a > textview in the middle, and another button of fixed size on the > right. i want to tell the text view that its layout_width should be > the space that's left between the two fixed size buttons. not sure > how specifying "layout_toRightOf" would help in this scenario... You would specify the first button as alignParentLeft="true", the second button as alightParentRight="true", and the middle button as alignLeftOf being the left button and alignRightOf being the right button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

