On Sun, Apr 17, 2011 at 12:03 PM, Robert <[email protected]> wrote: > I am trying to position a button to be at the bottom of a tab screen. > THe top part is a ScrollView that has a Webview as it's child.
You cannot put a WebView in a ScrollView. WebView already knows how to scroll -- it does not need to be in a ScrollView. > I > have been able to get the button to be at the bottom but the > ScrollView is "behind the button". When I scroll to the bottom the > last 2 lines of the text are behind the button. Have tried various > combinations of LayoutGravity and weight and suggestions found on this > group and StackOverflow but no luck. First, layout_gravity only matters for LinearLayout. You are not using a LinearLayout. You are using a RelativeLayout. If you want your WebView to sit atop the Button, anchor the Button to the bottom of the RelativeLayout (android:layout_alignParentBottom="true"), then anchor the WebView to the top of the RelativeLayout and to the top of the Button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

