I think it would be good if u use two seperate layouts for portrait
mode and landscape mode. You can save the layout for landscape mode by
saving it a folder for ex:res/layout-land...

You can call the lanscape layout when the phone is switched from
portrait to landscape mode...This would be a easier solution to ur
problem...

On May 28, 5:21 pm, Mike Topper <[email protected]> wrote:
> Hey Geoff,
>
> thanks for the response!
>
> I couldn't get it to work exactly right with just your instructions,
> it was basically just drawing the email field right on top of the
> button bar, but after some more experimenting I got it to work with
> adding a scrollview around the linearlayout and putting this in it:
>
>         <ScrollView
>                 android:layout_height="fill_parent"
>                 android:layout_width="fill_parent"
>                 android:orientation="vertical"
>                 android:layout_alignParentTop="true"
>                 android:layout_above="@+id/buttonBarLayout">
>
> now it works!  Thanks for putting me in the right direction.
>
> -Mike
>
> On Thu, May 27, 2010 at 6:39 PM, brucko <[email protected]> wrote:
> > Hi Mike,
>
> > It appears you may be running out of room. RelativeLayout is drawing
> > your first LinearLayout and then placing the other on top. My
> > understanding is that Relative Layout (and FrameLayout) maintain a Z-
> > ordering of children essentially each child is on a layer above the
> > previous and will obscure previous children unless you tell it to do
> > otherwise. You got lucky with your portrait layout.
>
> > You could consider trying the following :
>
> > 1/ Declare your button bar linear layout aligning it with the parent
> > bottom.
>
> > 2/ Declare your other LinearLayout next aligning it's top with the
> > parent and bottom with the button bar.
>
> > 3/ make this second linear layout scrollable with
> > android:isScrollContainer="true"
> >    http://developer.android.com/intl/de/reference/android/view/View.html...
>
> > The idea is that your top linear layout will scroll if there is
> > insufficient room and your layout will be more flexible to cope with
> > more devices.
>
> > If this doesn't work try a ScrollView.
>
> >    http://developer.android.com/intl/de/reference/android/widget/ScrollV...
>
> > Don't let any of this put you off RelativeLayout. They are extremely
> > powerful and help to reduce the depth/levels of your view hierarchy.
> > In fact, you might consider using a second relative layout which would
> > allow you to get rid of all those nested LinearLayouts with one
> > Relative Layout. They are trickier but definitely worth it.
>
> >http://developer.android.com/intl/de/resources/articles/layout-tricks...
>
> > Best Regards,
>
> > Geoff
>
> > --
> > 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

-- 
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

Reply via email to