在 ScrollView 中重叠 LinearLayouts

Overlapping LinearLayouts In ScrollView

我无法找到一种方法来防止最低的 LinearLayout 在滚动视图中被切断。我已经尝试添加 weightsum 并确保注释部分 (@+id/etNotes) 根据设备的高度拉伸并填充屏幕,但是,它似乎被切断 (@+id/bPhot) 并且(@+id/bHelp)如何确保即使在小屏幕上也能显示所有元素?

非常感谢任何帮助。谢谢

    <ScrollView
    android:id="@+id/svMain"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal" >

                <LinearLayout
                         android:layout_width="match_parent"
                         android:orientation="vertical" 
                         android:layout_height="match_parent"
                         android:gravity="center_vertical">        

                            <TextView
                                android:id="@+id/tvDetails"
                                android:layout_width="match_parent"
                                android:layout_height="wrap_content"
                                android:background="@color/yellow"
                                android:clickable="true"
                                android:padding="10dp"
                                android:text="TextView"
                                android:textSize="@dimen/seventeen" />

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="10dp"
                                android:orientation="vertical" >
                            </LinearLayout>

                            <RadioGroup
                                android:id="@+id/rgStatus"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_gravity="right"
                                android:layout_marginLeft="@dimen/activity_horizontal_margin" >

                                <RadioButton
                                    android:id="@+id/radio0"
                                    android:layout_width="match_parent"
                                    android:layout_height="46dp"
                                    android:checked="false"
                                    android:text="Option1"
                                    android:textSize="@dimen/twentysize" />

                                <RadioButton
                                    android:id="@+id/radio1"
                                    android:layout_width="match_parent"
                                    android:layout_height="48dp"
                                    android:text="Option2"
                                    android:textSize="@dimen/twentysize" />

                                <RadioButton
                                    android:id="@+id/radio2"
                                    android:layout_width="match_parent"
                                    android:layout_height="46dp"
                                    android:checked="true"
                                    android:text="Option3"
                                    android:textSize="@dimen/twentysize" />

                            </RadioGroup>

                            <LinearLayout
                                android:layout_width="match_parent"
                                android:layout_height="10dp"
                                android:orientation="vertical" >
                            </LinearLayout>

                                    <LinearLayout
                                                    android:layout_width="match_parent"
                                                    android:layout_height="fill_parent"
                                                    android:background="@color/whitewhite"
                                                    android:weightSum="5"                       
                                                    android:orientation="vertical">

                                                <LinearLayout
                                                    android:layout_width="match_parent"
                                                    android:layout_height="fill_parent"
                                                    android:layout_weight="0.5"
                                                    android:background="@color/whitewhite"
                                                    android:padding="10dp" >

                                                <EditText
                                                    android:id="@+id/etNotes"
                                                    android:layout_width="fill_parent"
                                                    android:layout_height="fill_parent"
                                                    android:background="@color/whitewhite"
                                                    android:ems="10"
                                                    android:gravity="top"  
                                                    android:hint="Notes (optional)"
                                                    android:inputType="textMultiLine"
                                                    android:padding="5dp" />

                                                </LinearLayout>

                                                <LinearLayout
                                                    android:layout_width="match_parent"
                                                    android:layout_height="fill_parent"
                                                    android:layout_weight="2"
                                                    android:background="@color/whitewhite"
                                                    android:gravity="bottom"
                                                    android:orientation="horizontal"
                                                    android:padding="8dp" >

                                                    <Button
                                                        android:id="@+id/bPhoto"
                                                        android:layout_width="45dp"
                                                        android:layout_height="45dp"
                                                        android:layout_weight=".02"
                                                        android:background="@drawable/camera"
                                                        android:gravity="left|center_vertical"/>

                                                    <Button
                                                        android:id="@+id/bHelp"
                                                        android:layout_width="wrap_content"
                                                        android:layout_height="wrap_content"
                                                        android:layout_weight="2.5"
                                                        android:background="@null"
                                                        android:gravity="right|center_vertical"
                                                        android:paddingRight="@dimen/sevendp"
                                                        android:text="Check List"
                                                        android:textColor="@color/holobluelight"
                                                        android:textSize="@dimen/sixteen" />

                                                </LinearLayout>




                                    </LinearLayout>
                </LinearLayout>
        </LinearLayout>

</ScrollView>   

这是重新访问的完整布局: 这部分已更改:

旧:

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="fill_parent"
                android:background="@color/whitewhite"
                android:weightSum="5"
                android:orientation="vertical">

            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="0.5"
                    android:background="@color/whitewhite"
                    android:padding="10dp" >

                <EditText
                        android:id="@+id/etNotes"

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="fill_parent"
                android:background="@color/whitewhite"
                android:orientation="vertical">

            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:background="@color/whitewhite"
                    android:padding="10dp" >

                <EditText
                        android:id="@+id/etNotes"

完成

<ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/svMain"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true" >

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal" >

        <LinearLayout
                android:layout_width="match_parent"
                android:orientation="vertical"
                android:layout_height="match_parent"
                android:gravity="center_vertical">

            <TextView
                    android:id="@+id/tvDetails"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/yellow"
                    android:clickable="true"
                    android:padding="10dp"
                    android:text="TextView"
                    android:textSize="@dimen/seventeen" />

            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="10dp"
                    android:orientation="vertical" >
            </LinearLayout>

            <RadioGroup
                    android:id="@+id/rgStatus"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="right"
                    android:layout_marginLeft="@dimen/activity_horizontal_margin" >

                <RadioButton
                        android:id="@+id/radio0"
                        android:layout_width="match_parent"
                        android:layout_height="46dp"
                        android:checked="false"
                        android:text="Option1"
                        android:textSize="@dimen/twentysize" />

                <RadioButton
                        android:id="@+id/radio1"
                        android:layout_width="match_parent"
                        android:layout_height="48dp"
                        android:text="Option2"
                        android:textSize="@dimen/twentysize" />

                <RadioButton
                        android:id="@+id/radio2"
                        android:layout_width="match_parent"
                        android:layout_height="46dp"
                        android:checked="true"
                        android:text="Option3"
                        android:textSize="@dimen/twentysize" />

            </RadioGroup>

            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="10dp"
                    android:orientation="vertical" >
            </LinearLayout>

            <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="fill_parent"
                    android:background="@color/whitewhite"
                    android:orientation="vertical">

                <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="0dp"
                        android:layout_weight="1"
                        android:background="@color/whitewhite"
                        android:padding="10dp" >

                    <EditText
                            android:id="@+id/etNotes"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:background="@color/whitewhite"
                            android:ems="10"
                            android:gravity="top"
                            android:hint="Notes (optional)"
                            android:inputType="textMultiLine"
                            android:padding="5dp" />

                </LinearLayout>

                <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:background="@color/whitewhite"
                        android:gravity="bottom"
                        android:orientation="horizontal"
                        android:padding="8dp" >

                    <Button
                            android:id="@+id/bPhoto"
                            android:layout_width="45dp"
                            android:layout_height="45dp"
                            android:layout_weight=".02"
                            android:background="@drawable/camera"
                            android:gravity="left|center_vertical"/>

                    <Button
                            android:id="@+id/bHelp"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_weight="2.5"
                            android:background="@null"
                            android:gravity="right|center_vertical"
                            android:paddingRight="@dimen/sevendp"
                            android:text="Check List"
                            android:textColor="@color/holobluelight"
                            android:textSize="@dimen/sixteen" />

                </LinearLayout>




            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

</ScrollView>