Simon wrote: > I had already tried the RelativeLayout, but with no success, then when > i looked at my RelativeLayout attempt, i had > android:layout_gravity="bottom" instead of > android:layout_alignParentBottom="true". > > But sorry to say this has failed to solve the problem. as soon as wrap > the RelativeLayout with a ScrollView, then the layout is all scrambled > again, and the image with the alignParentBottom stops to work!! > Then i found this link, http://www.anddev.org/viewtopic.php?p=26866, > which basically says to have; > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:padding="10px"> > <ScrollView android:layout_width="fill_parent" > android:layout_height="wrap_content"> > <RelativeLayout......> > Your content here: textview and other components > </RelativeLayout> > </ScrollView> > </LinearLayout> > > but that fails to work as well, the problem again is with > android:layout_alignParentBottom="true" which isn't working.
First, I would temporarily nuke your ScrollView until you get everything else working. Then, I would still stick with RelativeLayout. Anchor the header to the top of the layout, anchor the footer to the bottom of the layout, and anchor the innards (presumably themselves wrapped in a LinearLayout) to *both* the bottom of the header and the top of the footer. Then, once you have that working, reintroduce your ScrollView to wrap the LinearLayout, putting whatever RelativeLayout rules you had on the LinearLayout now on the ScrollView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! 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 -~----------~----~----~----~------~----~------~--~---

