阅读背景:

RelativeLayout - 将片段保留在底部

来源:互联网 

This is my code:

这是我的代码:

<RelativeLayout xmlns:android="https://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/buttonsFragment1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <ScrollView
        android:id="@+id/scrollViewer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/buttonsFragment1">

        <LinearLayout
            android:id="@+id/showSomething"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:clickable="true"
            android:orientation="vertical" />

    </ScrollView>

    <FrameLayout
        android:id="@+id/buttonsFragment2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_below="@+id/scrollViewer" />

</RelativeLayout>
<RelativeLayout xm



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: