|
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 4 | android:layout_width="match_parent" |
5 | 5 | android:layout_height="match_parent" |
6 | | - android:background="?attr/colorSurface" |
| 6 | + android:background="?attr/colorPrimary" |
7 | 7 | android:fitsSystemWindows="true"> |
8 | 8 |
|
9 | 9 | <com.google.android.material.appbar.AppBarLayout |
10 | 10 | android:layout_width="match_parent" |
11 | | - android:layout_height="wrap_content" |
| 11 | + android:layout_height="200dp" |
| 12 | + android:fitsSystemWindows="true" |
| 13 | + android:background="?attr/colorPrimary" |
12 | 14 | app:elevation="0dp"> |
13 | 15 |
|
14 | | - <com.google.android.material.appbar.MaterialToolbar |
15 | | - android:id="@+id/toolbar" |
| 16 | + <com.google.android.material.appbar.CollapsingToolbarLayout |
16 | 17 | android:layout_width="match_parent" |
17 | | - android:layout_height="?attr/actionBarSize" |
18 | | - android:background="?attr/colorPrimary" |
19 | | - app:navigationIcon="@drawable/ic_arrow_back" |
20 | | - app:navigationIconTint="?attr/colorOnPrimary" |
21 | | - app:title="@string/menu_log" |
22 | | - app:titleTextColor="?attr/colorOnPrimary" /> |
| 18 | + android:layout_height="match_parent" |
| 19 | + app:contentScrim="?attr/colorPrimary" |
| 20 | + app:layout_scrollFlags="scroll|exitUntilCollapsed"> |
| 21 | + |
| 22 | + <ImageView |
| 23 | + android:layout_width="match_parent" |
| 24 | + android:layout_height="match_parent" |
| 25 | + android:alpha="0.42" |
| 26 | + android:contentDescription="@null" |
| 27 | + android:scaleType="centerCrop" |
| 28 | + android:src="@drawable/uwu_banner_image_2" |
| 29 | + app:layout_collapseMode="parallax" /> |
| 30 | + |
| 31 | + <View |
| 32 | + android:layout_width="match_parent" |
| 33 | + android:layout_height="match_parent" |
| 34 | + android:background="#40000000" /> |
| 35 | + |
| 36 | + <com.google.android.material.appbar.MaterialToolbar |
| 37 | + android:id="@+id/toolbar" |
| 38 | + android:layout_width="match_parent" |
| 39 | + android:layout_height="?attr/actionBarSize" |
| 40 | + app:layout_collapseMode="pin" |
| 41 | + app:navigationIcon="@drawable/ic_arrow_back" |
| 42 | + app:navigationIconTint="?attr/colorOnPrimary" |
| 43 | + app:title="@string/menu_log" |
| 44 | + app:titleTextColor="?attr/colorOnPrimary" /> |
| 45 | + |
| 46 | + <TextView |
| 47 | + android:layout_width="wrap_content" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:layout_gravity="bottom|start" |
| 50 | + android:layout_marginStart="28dp" |
| 51 | + android:layout_marginBottom="28dp" |
| 52 | + android:text="LOGCAT" |
| 53 | + android:textColor="?attr/colorOnPrimary" |
| 54 | + android:textSize="31sp" |
| 55 | + android:textStyle="bold" /> |
| 56 | + </com.google.android.material.appbar.CollapsingToolbarLayout> |
23 | 57 | </com.google.android.material.appbar.AppBarLayout> |
24 | 58 |
|
25 | 59 | <androidx.core.widget.NestedScrollView |
26 | 60 | android:id="@+id/logcat_scroll" |
27 | 61 | android:layout_width="match_parent" |
28 | 62 | android:layout_height="match_parent" |
29 | | - android:padding="12dp" |
| 63 | + android:layout_marginTop="-24dp" |
| 64 | + android:background="@drawable/uwu_background_collapse" |
| 65 | + android:clipToPadding="false" |
| 66 | + android:padding="18dp" |
30 | 67 | app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
31 | 68 |
|
32 | 69 | <HorizontalScrollView |
|
39 | 76 | android:layout_width="wrap_content" |
40 | 77 | android:layout_height="wrap_content" |
41 | 78 | android:fontFamily="monospace" |
42 | | - android:paddingBottom="88dp" |
| 79 | + android:paddingBottom="92dp" |
43 | 80 | android:textColor="?attr/colorOnSurfaceVariant" |
44 | | - android:textSize="11sp" |
45 | | - android:textIsSelectable="true" /> |
| 81 | + android:textIsSelectable="true" |
| 82 | + android:textSize="11sp" /> |
46 | 83 | </HorizontalScrollView> |
47 | 84 | </androidx.core.widget.NestedScrollView> |
48 | 85 |
|
|
51 | 88 | android:layout_width="wrap_content" |
52 | 89 | android:layout_height="wrap_content" |
53 | 90 | android:layout_gravity="bottom|end" |
54 | | - android:layout_margin="16dp" |
| 91 | + android:layout_margin="20dp" |
55 | 92 | android:text="@string/action_clear" |
56 | | - app:icon="@drawable/ic_action_delete" /> |
| 93 | + app:backgroundTint="?attr/colorCard" |
| 94 | + app:icon="@drawable/ic_action_delete" |
| 95 | + app:iconTint="?attr/colorOnSurface" |
| 96 | + app:strokeColor="?attr/colorOutline" |
| 97 | + app:strokeWidth="1dp" |
| 98 | + android:textColor="?attr/colorOnSurface" /> |
57 | 99 |
|
58 | 100 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments