No you cannot do this because "fill_parent" is meaningless inside a ScrollView. It looks like you don't want a ScrollView at all if that's what you are trying to do.
On Sat, Mar 6, 2010 at 9:55 AM, knavewave <[email protected]> wrote: > Forgot to mention... This is only for landscape orientation. In > portrait, the image will align to the bottom. > > On Feb 26, 10:25 pm, knavewave <[email protected]> wrote: >> If I put a "fill_parent" RelativeLayout beneath a ScrollView, I can >> not get an ImageView to align to the parent's bottom. >> >> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" >> android:layout_width="fill_parent" >> android:layout_height="fill_parent"> >> <RelativeLayout >> android:layout_width="fill_parent" >> android:layout_height="fill_parent"> >> <ImageView >> android:layout_width="fill_parent" >> android:layout_height="wrap_content" >> android:layout_alignParentBottom="true" >> android:layout_alignParentLeft="true" >> android:src=.... /> >> </RelativeLayout> >> </ScrollView> >> >> As a bit of basic sanity, I have verified that the ImageView will >> align to the parent's bottom if I do either of the following. >> >> 1) Change "ScrollView" to "HorizontalScrollView" >> 2) Delete the ScrollView leaving only the RelativeLayout >> >> This is very trivial. Why is it not working? > > -- > You received this message because you are subscribed to the Google Groups > "Android Discuss" 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-discuss?hl=en. > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Discuss" 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-discuss?hl=en.
