|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<com.google.android.material.card.MaterialCardView |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + android:layout_width="760dp" |
| 6 | + android:layout_height="wrap_content" |
| 7 | + app:cardBackgroundColor="@color/mg4_surface" |
| 8 | + app:cardCornerRadius="@dimen/mg4_corner" |
| 9 | + app:cardElevation="0dp" |
| 10 | + app:strokeColor="@color/mg4_outline" |
| 11 | + app:strokeWidth="1dp"> |
| 12 | + |
| 13 | + <LinearLayout |
| 14 | + android:layout_width="match_parent" |
| 15 | + android:layout_height="wrap_content" |
| 16 | + android:orientation="vertical"> |
| 17 | + |
| 18 | + <TextView |
| 19 | + android:layout_width="match_parent" |
| 20 | + android:layout_height="wrap_content" |
| 21 | + android:paddingStart="@dimen/spacing_lg" |
| 22 | + android:paddingTop="@dimen/spacing_md" |
| 23 | + android:paddingEnd="@dimen/spacing_lg" |
| 24 | + android:paddingBottom="@dimen/spacing_md" |
| 25 | + android:text="@string/about_title" |
| 26 | + android:textAppearance="@style/Text.MG4.SectionHeader" /> |
| 27 | + |
| 28 | + <View |
| 29 | + android:layout_width="match_parent" |
| 30 | + android:layout_height="1dp" |
| 31 | + android:background="@color/mg4_outline" /> |
| 32 | + |
| 33 | + <LinearLayout |
| 34 | + android:layout_width="match_parent" |
| 35 | + android:layout_height="wrap_content" |
| 36 | + android:baselineAligned="false" |
| 37 | + android:orientation="horizontal" |
| 38 | + android:padding="@dimen/spacing_lg"> |
| 39 | + |
| 40 | + <LinearLayout |
| 41 | + android:layout_width="0dp" |
| 42 | + android:layout_height="match_parent" |
| 43 | + android:layout_marginEnd="@dimen/spacing_lg" |
| 44 | + android:layout_weight="1" |
| 45 | + android:gravity="center_vertical" |
| 46 | + android:orientation="vertical"> |
| 47 | + |
| 48 | + <ImageView |
| 49 | + android:layout_width="128dp" |
| 50 | + android:layout_height="128dp" |
| 51 | + android:background="@drawable/about_logo_tile" |
| 52 | + android:contentDescription="@string/about_logo_description" |
| 53 | + android:padding="@dimen/spacing_sm" |
| 54 | + android:src="@drawable/ic_launcher_foreground" /> |
| 55 | + |
| 56 | + <TextView |
| 57 | + android:layout_width="match_parent" |
| 58 | + android:layout_height="wrap_content" |
| 59 | + android:layout_marginTop="@dimen/spacing_md" |
| 60 | + android:text="@string/app_name" |
| 61 | + android:textAppearance="@style/Text.MG4.Title" /> |
| 62 | + |
| 63 | + <TextView |
| 64 | + android:id="@+id/about_version" |
| 65 | + android:layout_width="match_parent" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + android:layout_marginTop="@dimen/spacing_xs" |
| 68 | + android:textAppearance="@style/Text.MG4.Secondary" /> |
| 69 | + |
| 70 | + <TextView |
| 71 | + android:layout_width="match_parent" |
| 72 | + android:layout_height="wrap_content" |
| 73 | + android:layout_marginTop="@dimen/spacing_md" |
| 74 | + android:lineSpacingMultiplier="1.25" |
| 75 | + android:text="@string/about_attribution" |
| 76 | + android:textAppearance="@style/Text.MG4.Body" /> |
| 77 | + </LinearLayout> |
| 78 | + |
| 79 | + <View |
| 80 | + android:layout_width="1dp" |
| 81 | + android:layout_height="match_parent" |
| 82 | + android:layout_marginEnd="@dimen/spacing_lg" |
| 83 | + android:background="@color/mg4_outline" /> |
| 84 | + |
| 85 | + <LinearLayout |
| 86 | + android:layout_width="264dp" |
| 87 | + android:layout_height="wrap_content" |
| 88 | + android:gravity="center_horizontal" |
| 89 | + android:orientation="vertical"> |
| 90 | + |
| 91 | + <ImageView |
| 92 | + android:id="@+id/about_qr_code" |
| 93 | + android:layout_width="208dp" |
| 94 | + android:layout_height="208dp" |
| 95 | + android:background="#FFFFFFFF" |
| 96 | + android:contentDescription="@string/about_qr_description" |
| 97 | + android:padding="@dimen/spacing_sm" |
| 98 | + android:scaleType="fitCenter" /> |
| 99 | + |
| 100 | + <TextView |
| 101 | + android:id="@+id/about_repository" |
| 102 | + android:layout_width="match_parent" |
| 103 | + android:layout_height="@dimen/touch_target" |
| 104 | + android:layout_marginTop="@dimen/spacing_sm" |
| 105 | + android:clickable="true" |
| 106 | + android:focusable="true" |
| 107 | + android:gravity="center" |
| 108 | + android:text="@string/about_repository" |
| 109 | + android:textAppearance="@style/Text.MG4.Secondary" |
| 110 | + android:textColor="@color/mg4_accent" /> |
| 111 | + </LinearLayout> |
| 112 | + </LinearLayout> |
| 113 | + |
| 114 | + <View |
| 115 | + android:layout_width="match_parent" |
| 116 | + android:layout_height="1dp" |
| 117 | + android:background="@color/mg4_outline" /> |
| 118 | + |
| 119 | + <LinearLayout |
| 120 | + android:layout_width="match_parent" |
| 121 | + android:layout_height="wrap_content" |
| 122 | + android:gravity="center_vertical" |
| 123 | + android:orientation="horizontal" |
| 124 | + android:padding="@dimen/spacing_md"> |
| 125 | + |
| 126 | + <TextView |
| 127 | + android:layout_width="0dp" |
| 128 | + android:layout_height="wrap_content" |
| 129 | + android:layout_weight="1" |
| 130 | + android:text="@string/about_made_with_love" |
| 131 | + android:textAppearance="@style/Text.MG4.Body" /> |
| 132 | + |
| 133 | + <com.google.android.material.button.MaterialButton |
| 134 | + android:id="@+id/about_close" |
| 135 | + style="@style/Widget.MG4.Button.Outlined" |
| 136 | + android:layout_width="wrap_content" |
| 137 | + android:layout_height="wrap_content" |
| 138 | + android:minHeight="@dimen/touch_target" |
| 139 | + android:text="@string/about_close" /> |
| 140 | + </LinearLayout> |
| 141 | + </LinearLayout> |
| 142 | +</com.google.android.material.card.MaterialCardView> |
0 commit comments