| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright 2021 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_horizontal" |
| android:background="@color/modern_grey_200" |
| android:paddingEnd="@dimen/note_side_padding" |
| android:paddingStart="@dimen/note_side_padding" |
| android:id="@+id/item"> |
| |
| <!-- Note template --> |
| <LinearLayout |
| android:id="@+id/background" |
| android:layout_width="@dimen/note_width" |
| android:layout_height="280dp" |
| android:gravity="center_horizontal" |
| android:background="@drawable/note_background_outline" |
| android:orientation="vertical"> |
| |
| <!-- Selected text --> |
| <TextView |
| android:id="@+id/text" |
| android:layout_width="240dp" |
| android:layout_height="200dp" |
| android:maxLines="6" |
| android:layout_marginStart="20dp" |
| android:layout_marginTop="20dp" |
| android:layout_marginEnd="20dp" |
| android:layout_marginBottom="20dp" |
| android:background="@drawable/note_background_outline" |
| android:textAppearance="@style/TextAppearance.Headline" /> |
| |
| <!-- Footer --> |
| <RelativeLayout |
| android:id="@+id/footer" |
| android:layout_width="match_parent" |
| android:layout_height="40dp" |
| android:paddingBottom="8dp" |
| android:paddingEnd="8dp" |
| android:paddingStart="20dp"> |
| |
| <TextView |
| android:id="@+id/footer_link" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:maxLines="1" |
| android:ellipsize="end" |
| android:layout_marginEnd="20dp" |
| android:textAppearance="@style/TextAppearance.TextSmallThick.Secondary.Light" |
| android:layout_alignParentStart="true"/> |
| |
| <TextView |
| android:id="@+id/footer_title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:maxLines="1" |
| android:ellipsize="end" |
| android:layout_marginEnd="20dp" |
| android:textAppearance="@style/TextAppearance.TextSmallItalic.Secondary.Light" |
| android:layout_alignTop="@id/footer_icon" |
| android:layout_alignParentStart="false"/> |
| |
| <ImageView |
| android:id="@+id/footer_icon" |
| android:layout_width="16dp" |
| android:layout_height="16dp" |
| android:layout_alignParentEnd="true" |
| android:layout_alignParentBottom="true" |
| android:src="@drawable/ic_chrome" |
| android:importantForAccessibility="no"/> |
| </RelativeLayout> |
| </LinearLayout> |
| </LinearLayout> |