Не получается сделать разметку
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.vlubovin.mssql.MainActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:weightSum="1">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:text="Чеклист 1"
android:layout_height="wrap_content"
android:id="@+id/button"
android:textAlignment="center"
android:onClick="but_clc"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/button4" />
<Button
android:text="Чеклист 2"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/scrollView3"
android:layout_alignParentStart="true"
android:onClick="but_clc"
android:id="@+id/button4" />
<Button
android:text="Чеклист 3"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button5"
android:layout_alignParentTop="true"
android:onClick="but_clc"
android:layout_toEndOf="@+id/button" />
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_below="@+id/button"
android:id="@+id/scrollView3"
android:layout_height="297dp"
android:layout_weight="0.14">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/lin_la"
android:scrollbarAlwaysDrawHorizontalTrack="true"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:layout_below="@+id/button"
android:layout_centerHorizontal="true">
</LinearLayout>
</ScrollView>
<Button
android:text="Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="but_save"
android:id="@+id/button6"
android:layout_alignParentBottom="true"
/>
</LinearLayout>
</RelativeLayout>
Необходимо, чтобы нижняя кнопка прижалась к низу , а ScrollView растягивался между кнопкой и LinearLayout с тремя кнопками