blob: ae5d82d01cb9c4bcf99aec109954489f8f53aede [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 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. -->
<org.chromium.chrome.browser.touchless.SiteSuggestionsTileView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="@dimen/tile_view_icon_size"
android:layout_height="@dimen/tile_view_icon_size"
android:layout_gravity="center"
android:background="@drawable/suggestion_tile_highlight">
<!-- The icon background. -->
<View
android:id="@+id/tile_view_icon_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/suggestion_tile_background"
android:duplicateParentState="true" />
<!-- The main icon. -->
<org.chromium.chrome.browser.touchless.QuantizedSizeIconView
android:id="@+id/tile_view_icon"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
app:smallSize="@dimen/most_likely_quantized_icon_size_small"
app:largeSize="@dimen/most_likely_quantized_icon_size_large"
android:layout_margin="@dimen/most_likely_quantized_icon_margin"
android:importantForAccessibility="no" />
<!-- Focus highlight. -->
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/suggestion_tile_highlight"
android:duplicateParentState="true" />
<!-- The offline badge. -->
<ImageView
android:id="@+id/offline_badge"
android:layout_width="@dimen/tile_view_offline_badge_size_modern"
android:layout_height="@dimen/tile_view_offline_badge_size_modern"
android:layout_gravity="top|end"
android:layout_marginEnd="@dimen/tile_view_offline_badge_margin_end_modern_condensed"
android:visibility="gone"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_offline_pin_blue_white" />
</org.chromium.chrome.browser.touchless.SiteSuggestionsTileView>