|
45 | 45 | android:text="@string/welcome" |
46 | 46 | android:textSize="18sp" /> |
47 | 47 |
|
48 | | - <TextView |
49 | | - android:layout_width="match_parent" |
50 | | - android:layout_height="wrap_content" |
51 | | - android:layout_gravity="center" |
52 | | - android:layout_marginHorizontal="10dp" |
53 | | - android:text="@string/choose_instance_long" /> |
54 | | - |
55 | 48 | </LinearLayout> |
56 | 49 |
|
57 | 50 | <com.google.android.material.appbar.MaterialToolbar |
|
65 | 58 |
|
66 | 59 | </com.google.android.material.appbar.AppBarLayout> |
67 | 60 |
|
68 | | - <androidx.recyclerview.widget.RecyclerView |
69 | | - android:id="@+id/instances_recycler" |
| 61 | + <LinearLayout |
| 62 | + app:layout_behavior="@string/appbar_scrolling_view_behavior" |
70 | 63 | android:layout_width="match_parent" |
71 | 64 | android:layout_height="wrap_content" |
72 | | - android:clipToPadding="false" |
73 | | - android:fadeScrollbars="false" |
74 | | - android:paddingBottom="70dp" |
75 | | - android:scrollbars="vertical" |
76 | | - app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
77 | | - app:layout_behavior="@string/appbar_scrolling_view_behavior" |
78 | | - tools:listitem="@layout/instance_row" /> |
| 65 | + android:orientation="vertical"> |
| 66 | + |
| 67 | + <com.google.android.material.button.MaterialButtonToggleGroup |
| 68 | + android:id="@+id/operation_mode_group" |
| 69 | + app:selectionRequired="true" |
| 70 | + app:singleSelection="true" |
| 71 | + app:checkedButton="@+id/piped_toggle_group_button" |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:layout_marginBottom="10dp"> |
| 75 | + |
| 76 | + <com.google.android.material.button.MaterialButton |
| 77 | + android:id="@+id/piped_toggle_group_button" |
| 78 | + style="?attr/materialButtonOutlinedStyle" |
| 79 | + android:layout_width="match_parent" |
| 80 | + android:layout_height="wrap_content" |
| 81 | + android:text="@string/piped" /> |
| 82 | + |
| 83 | + <com.google.android.material.button.MaterialButton |
| 84 | + android:id="@+id/full_local_mode_toggle_group_button" |
| 85 | + style="?attr/materialButtonOutlinedStyle" |
| 86 | + android:layout_width="match_parent" |
| 87 | + android:layout_height="wrap_content" |
| 88 | + android:text="@string/full_local_mode" /> |
| 89 | + |
| 90 | + </com.google.android.material.button.MaterialButtonToggleGroup> |
| 91 | + |
| 92 | + <LinearLayout |
| 93 | + android:id="@+id/instances_container" |
| 94 | + android:layout_width="match_parent" |
| 95 | + android:layout_height="wrap_content" |
| 96 | + android:orientation="vertical"> |
| 97 | + |
| 98 | + <TextView |
| 99 | + android:layout_width="match_parent" |
| 100 | + android:layout_height="wrap_content" |
| 101 | + android:layout_gravity="center" |
| 102 | + android:layout_marginHorizontal="10dp" |
| 103 | + android:layout_marginBottom="10dp" |
| 104 | + android:text="@string/choose_instance_long" /> |
| 105 | + |
| 106 | + <androidx.recyclerview.widget.RecyclerView |
| 107 | + android:id="@+id/instances_recycler" |
| 108 | + android:layout_width="match_parent" |
| 109 | + android:layout_height="wrap_content" |
| 110 | + android:clipToPadding="false" |
| 111 | + android:fadeScrollbars="false" |
| 112 | + android:paddingBottom="70dp" |
| 113 | + android:scrollbars="vertical" |
| 114 | + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |
| 115 | + tools:listitem="@layout/instance_row" /> |
| 116 | + |
| 117 | + </LinearLayout> |
| 118 | + |
| 119 | + <LinearLayout |
| 120 | + android:visibility="gone" |
| 121 | + android:id="@+id/local_mode_info_container" |
| 122 | + android:layout_width="match_parent" |
| 123 | + android:layout_height="wrap_content" |
| 124 | + android:orientation="vertical" |
| 125 | + android:paddingHorizontal="10dp"> |
| 126 | + |
| 127 | + <TextView |
| 128 | + android:layout_width="match_parent" |
| 129 | + android:layout_height="wrap_content" |
| 130 | + android:text="@string/full_local_mode_desc" /> |
| 131 | + |
| 132 | + </LinearLayout> |
| 133 | + </LinearLayout> |
79 | 134 |
|
80 | 135 | <FrameLayout |
81 | 136 | android:id="@+id/progress" |
|
0 commit comments