Use android:layout_above and android:layout_alignParentTop to position and size the top TextView.
Or, switch to a LinearLayout and use android:layout_weight. On Wed, Feb 16, 2011 at 7:45 PM, njman <[email protected]> wrote: > i've got a RelativeLayout with 2 vertical TextView elements. > > the height of the bottom one is WRAP_CONTENT - i would > like it to take the exact space required. > > i would like the top one to take the rest of the height. > > if i set it's height to WRAP_CONTENT - it leaves a lot of > unused height. > > if i set it's height to FILL_PARENT - then the 2nd one doesn't > show up. > > help! > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.3 Programming Books: http://commonsware.com/books -- 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

