| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright 2019 The Chromium Authors | |
| Use of this source code is governed by a BSD-style license that can be | |
| found in the LICENSE file. | |
| --> | |
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="@dimen/sharing_hub_tile_width" | |
| android:layout_height="fill_parent" | |
| android:layout_marginStart="@dimen/sharing_hub_tile_margin" | |
| android:layout_marginEnd="@dimen/sharing_hub_tile_margin"> | |
| <LinearLayout android:id="@+id/layout" | |
| android:clickable="true" | |
| android:focusable="true" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:paddingTop="28dp" | |
| android:background="?attr/selectableItemBackground" | |
| android:gravity="center_horizontal" | |
| android:orientation="vertical" > | |
| <ImageView android:id="@+id/icon" | |
| android:layout_height="24dp" | |
| android:layout_width="24dp" | |
| android:scaleType="fitCenter" | |
| tools:ignore="ContentDescription" /> | |
| <TextView android:id="@+id/text" | |
| android:layout_width="fill_parent" | |
| android:layout_height="wrap_content" | |
| android:ellipsize="end" | |
| android:gravity="center" | |
| android:maxLines="2" | |
| android:paddingTop="13dp" | |
| android:textAlignment="center" | |
| android:textAppearance="@style/TextAppearance.TextSmall.Primary" /> | |
| </LinearLayout> | |
| <TextView android:id="@+id/display_new" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentTop="true" | |
| android:layout_alignParentEnd="true" | |
| android:maxLines="1" | |
| android:paddingTop="13dp" | |
| android:text="@string/new_badge" | |
| android:textAppearance="@style/TextAppearance.TextSmall.Accent1" | |
| android:visibility="gone"/> | |
| </RelativeLayout> |