|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<LinearLayout android:id="@+id/gyro_linearlayout" |
| 2 | +<ScrollView |
3 | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
4 | 4 | xmlns:tools="http://schemas.android.com/tools" |
5 | 5 | android:layout_width="match_parent" |
6 | 6 | android:layout_height="match_parent" |
7 | | - android:fitsSystemWindows="true" |
8 | | - android:orientation="vertical" |
9 | | - tools:context="io.pslab.activity.GyroscopeActivity"> |
| 7 | + android:fitsSystemWindows="true"> |
10 | 8 |
|
11 | | - <fragment |
12 | | - android:id="@+id/gyroscope_x_axis_fragment" |
13 | | - android:name="io.pslab.fragment.GyroscopeViewFragment" |
| 9 | + <LinearLayout |
| 10 | + android:id="@+id/gyro_linearlayout" |
14 | 11 | android:layout_width="match_parent" |
15 | | - android:layout_height="0dp" |
16 | | - android:layout_weight="1" |
17 | | - android:layout_margin="5dp" |
18 | | - tools:layout="@layout/gyroscope_list_item" /> |
| 12 | + android:layout_height="wrap_content" |
| 13 | + android:orientation="vertical" |
| 14 | + tools:context="io.pslab.activity.GyroscopeActivity"> |
19 | 15 |
|
20 | | - <fragment |
21 | | - android:id="@+id/gyroscope_y_axis_fragment" |
22 | | - android:name="io.pslab.fragment.GyroscopeViewFragment" |
23 | | - android:layout_width="match_parent" |
24 | | - android:layout_height="0dp" |
25 | | - android:layout_weight="1" |
26 | | - android:layout_margin="5dp" |
27 | | - tools:layout="@layout/gyroscope_list_item" /> |
| 16 | + <fragment |
| 17 | + android:id="@+id/gyroscope_x_axis_fragment" |
| 18 | + android:name="io.pslab.fragment.GyroscopeViewFragment" |
| 19 | + android:layout_width="match_parent" |
| 20 | + android:layout_height="@dimen/gyroscope_fragment_height" |
| 21 | + android:layout_margin="@dimen/gyroscope_fragment_margin" |
| 22 | + tools:layout="@layout/gyroscope_list_item" /> |
28 | 23 |
|
29 | | - <fragment |
30 | | - android:id="@+id/gyroscope_z_axis_fragment" |
31 | | - android:name="io.pslab.fragment.GyroscopeViewFragment" |
32 | | - android:layout_width="match_parent" |
33 | | - android:layout_height="0dp" |
34 | | - android:layout_weight="1" |
35 | | - android:layout_marginTop="5dp" |
36 | | - android:layout_marginLeft="5dp" |
37 | | - android:layout_marginRight="5dp" |
38 | | - android:layout_marginBottom="10dp" |
39 | | - tools:layout="@layout/gyroscope_list_item" /> |
40 | | -</LinearLayout> |
| 24 | + <fragment |
| 25 | + android:id="@+id/gyroscope_y_axis_fragment" |
| 26 | + android:name="io.pslab.fragment.GyroscopeViewFragment" |
| 27 | + android:layout_width="match_parent" |
| 28 | + android:layout_height="@dimen/gyroscope_fragment_height" |
| 29 | + android:layout_margin="@dimen/gyroscope_fragment_margin" |
| 30 | + tools:layout="@layout/gyroscope_list_item" /> |
| 31 | + |
| 32 | + <fragment |
| 33 | + android:id="@+id/gyroscope_z_axis_fragment" |
| 34 | + android:name="io.pslab.fragment.GyroscopeViewFragment" |
| 35 | + android:layout_width="match_parent" |
| 36 | + android:layout_height="@dimen/gyroscope_fragment_height" |
| 37 | + android:layout_margin="@dimen/gyroscope_fragment_margin" |
| 38 | + tools:layout="@layout/gyroscope_list_item" /> |
| 39 | + |
| 40 | + </LinearLayout> |
| 41 | +</ScrollView> |
0 commit comments