|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <androidx.coordinatorlayout.widget.CoordinatorLayout |
3 | | - android:orientation="vertical" |
4 | | - android:duplicateParentState="false" |
| 3 | + android:id="@+id/coordinator" |
5 | 4 | android:layout_width="fill_parent" |
6 | 5 | android:layout_height="fill_parent" |
7 | 6 | xmlns:android="http://schemas.android.com/apk/res/android" |
|
10 | 9 | android:id="@+id/appbar" |
11 | 10 | android:background="?attr/colorPrimary" |
12 | 11 | android:layout_width="fill_parent" |
13 | | - android:layout_height="wrap_content"> |
| 12 | + android:layout_height="200.0dip"> |
14 | 13 | <com.google.android.material.appbar.CollapsingToolbarLayout |
| 14 | + android:id="@+id/collapsing_toolbar" |
| 15 | + android:background="?attr/colorPrimary" |
15 | 16 | android:layout_width="fill_parent" |
16 | | - android:layout_height="wrap_content" |
17 | | - app:layout_scrollFlags="enterAlways|scroll" |
18 | | - app:titleEnabled="false"> |
| 17 | + android:layout_height="fill_parent" |
| 18 | + app:collapsedTitleTextAppearance="@style/Theme.SagerNet.CollapsingToolbarTitle.Collapsed" |
| 19 | + app:collapsedTitleTextColor="?android:textColorPrimaryInverse" |
| 20 | + app:contentScrim="?attr/colorPrimary" |
| 21 | + app:expandedTitleTextAppearance="@style/Theme.SagerNet.CollapsingToolbarTitle.Expanded" |
| 22 | + app:expandedTitleTextColor="?android:textColorPrimaryInverse" |
| 23 | + app:layout_scrollFlags="scroll|exitUntilCollapsed"> |
19 | 24 | <com.google.android.material.appbar.MaterialToolbar |
20 | 25 | android:theme="?attr/actionBarTheme" |
21 | 26 | android:id="@+id/toolbar" |
22 | | - android:background="?attr/colorPrimary" |
23 | 27 | android:layout_width="fill_parent" |
24 | 28 | android:layout_height="?attr/actionBarSize" |
25 | | - android:elevation="0.0dip" |
26 | | - android:touchscreenBlocksFocus="false" |
27 | 29 | app:layout_collapseMode="pin" |
28 | | - app:popupTheme="@style/AppTheme.PopupOverlay" |
29 | | - app:title="@string/app_name" |
30 | | - app:titleTextColor="?android:textColorPrimaryInverse" /> |
| 30 | + app:popupTheme="@style/AppTheme.PopupOverlay" /> |
| 31 | + </com.google.android.material.appbar.CollapsingToolbarLayout> |
| 32 | + </com.google.android.material.appbar.AppBarLayout> |
| 33 | + <FrameLayout |
| 34 | + android:background="@drawable/uwu_background_collapse" |
| 35 | + android:layout_width="fill_parent" |
| 36 | + android:layout_height="fill_parent" |
| 37 | + app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| 38 | + <com.google.android.material.card.MaterialCardView |
| 39 | + android:paddingTop="16.0dip" |
| 40 | + android:layout_width="fill_parent" |
| 41 | + android:layout_height="fill_parent" |
| 42 | + android:layout_marginTop="16.0dip" |
| 43 | + android:layout_marginBottom="16.0dip" |
| 44 | + android:layout_marginStart="16.0dip" |
| 45 | + android:layout_marginEnd="16.0dip" |
| 46 | + app:cardBackgroundColor="#00000000" |
| 47 | + app:cardCornerRadius="14.0dip" |
| 48 | + app:cardElevation="0.0dip"> |
31 | 49 | <LinearLayout |
32 | 50 | android:orientation="vertical" |
33 | | - android:paddingTop="56.0dip" |
34 | 51 | android:layout_width="fill_parent" |
35 | | - android:layout_height="wrap_content"> |
| 52 | + android:layout_height="fill_parent" |
| 53 | + android:layout_marginTop="-16.0dip" |
| 54 | + android:layout_marginStart="-16.0dip" |
| 55 | + android:layout_marginEnd="-16.0dip"> |
36 | 56 | <com.google.android.material.card.MaterialCardView |
37 | 57 | android:layout_width="fill_parent" |
38 | 58 | android:layout_height="wrap_content" |
39 | | - android:layout_margin="4.0dip" |
| 59 | + android:layout_marginStart="16.0dip" |
| 60 | + android:layout_marginEnd="16.0dip" |
| 61 | + android:layout_marginBottom="4.0dip" |
40 | 62 | app:cardBackgroundColor="?attr/colorCard" |
41 | | - app:cardCornerRadius="10.0dip" |
| 63 | + app:cardCornerRadius="14.0dip" |
42 | 64 | app:cardElevation="0.0dip"> |
43 | 65 | <LinearLayout |
44 | 66 | android:orientation="vertical" |
|
49 | 71 | android:id="@+id/bypassGroup" |
50 | 72 | android:layout_width="fill_parent" |
51 | 73 | android:layout_height="wrap_content" |
52 | | - android:layout_marginTop="4.0dip" |
| 74 | + android:layout_marginTop="8.0dip" |
53 | 75 | app:selectionRequired="true" |
54 | 76 | app:singleLine="true" |
55 | 77 | app:singleSelection="true"> |
|
74 | 96 | android:text="@string/bypass_apps" /> |
75 | 97 | </com.google.android.material.chip.ChipGroup> |
76 | 98 | <LinearLayout |
77 | | - android:orientation="horizontal" |
| 99 | + android:orientation="vertical" |
78 | 100 | android:layout_width="wrap_content" |
79 | 101 | android:layout_height="wrap_content"> |
80 | 102 | <com.google.android.material.chip.Chip |
81 | 103 | android:textAppearance="@style/TextAppearance.M3.Sys.Typescale.TitleSmall" |
82 | 104 | android:id="@+id/show_system_apps" |
83 | 105 | android:layout_width="wrap_content" |
84 | 106 | android:layout_height="wrap_content" |
85 | | - android:layout_marginBottom="4.0dip" |
86 | 107 | android:text="@string/show_system_apps" |
87 | | - android:layout_marginEnd="8.0dip" |
88 | 108 | style="@style/Widget.MaterialComponents.Chip.Filter" /> |
89 | 109 | <com.google.android.material.chip.Chip |
90 | 110 | android:textAppearance="@style/TextAppearance.M3.Sys.Typescale.TitleSmall" |
|
106 | 126 | </com.google.android.material.textfield.TextInputLayout> |
107 | 127 | </LinearLayout> |
108 | 128 | </com.google.android.material.card.MaterialCardView> |
| 129 | + <LinearLayout |
| 130 | + android:gravity="center" |
| 131 | + android:orientation="vertical" |
| 132 | + android:id="@+id/loading" |
| 133 | + android:layout_width="fill_parent" |
| 134 | + android:layout_height="fill_parent"> |
| 135 | + <com.google.android.material.progressindicator.CircularProgressIndicator |
| 136 | + android:layout_width="wrap_content" |
| 137 | + android:layout_height="wrap_content" |
| 138 | + android:indeterminate="true" /> |
| 139 | + </LinearLayout> |
| 140 | + <com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView |
| 141 | + android:scrollbarSize="0.0dip" |
| 142 | + android:id="@+id/list" |
| 143 | + android:paddingBottom="64.0dip" |
| 144 | + android:visibility="gone" |
| 145 | + android:clipToPadding="false" |
| 146 | + android:layout_width="fill_parent" |
| 147 | + android:layout_height="fill_parent" |
| 148 | + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> |
| 149 | + <include |
| 150 | + android:id="@+id/app_placeholder" |
| 151 | + layout="@layout/layout_app_placeholder" /> |
109 | 152 | </LinearLayout> |
110 | | - </com.google.android.material.appbar.CollapsingToolbarLayout> |
111 | | - </com.google.android.material.appbar.AppBarLayout> |
112 | | - <LinearLayout |
113 | | - android:gravity="center" |
114 | | - android:orientation="vertical" |
115 | | - android:id="@+id/loading" |
116 | | - android:layout_width="fill_parent" |
117 | | - android:layout_height="fill_parent"> |
118 | | - <com.google.android.material.progressindicator.CircularProgressIndicator |
119 | | - android:layout_width="wrap_content" |
120 | | - android:layout_height="wrap_content" |
121 | | - android:indeterminate="true" /> |
122 | | - </LinearLayout> |
123 | | - <com.simplecityapps.recyclerview_fastscroll.views.FastScrollRecyclerView |
124 | | - android:scrollbarSize="0.0dip" |
125 | | - android:id="@+id/list" |
126 | | - android:paddingBottom="64.0dip" |
127 | | - android:visibility="gone" |
128 | | - android:clipToPadding="false" |
129 | | - android:layout_width="fill_parent" |
130 | | - android:layout_height="fill_parent" |
131 | | - app:layout_behavior="@string/appbar_scrolling_view_behavior" /> |
132 | | - <include |
133 | | - android:id="@+id/app_placeholder" |
134 | | - layout="@layout/layout_app_placeholder" /> |
| 153 | + </com.google.android.material.card.MaterialCardView> |
| 154 | + </FrameLayout> |
135 | 155 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments