[fenix] For https://github.com/mozilla-mobile/fenix/issues/24581 - Fix row spacing...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / top_site_item.xml
blobdabb7323022d9b290127f55467426cdf2eee616a
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     xmlns:tools="http://schemas.android.com/tools"
8     android:id="@+id/top_site_item"
9     android:layout_width="match_parent"
10     android:layout_height="wrap_content"
11     android:layout_marginBottom="@dimen/top_sites_item_margin_bottom"
12     android:orientation="vertical">
14     <com.google.android.material.card.MaterialCardView
15         android:id="@+id/favicon_card"
16         style="@style/TopSite.FaviconCard"
17         android:importantForAccessibility="noHideDescendants"
18         app:layout_constraintLeft_toLeftOf="parent"
19         app:layout_constraintRight_toRightOf="parent"
20         app:layout_constraintTop_toTopOf="parent">
22         <com.google.android.material.imageview.ShapeableImageView
23             android:id="@+id/favicon_image"
24             style="@style/topSiteFavicon" />
25     </com.google.android.material.card.MaterialCardView>
27     <TextView
28         android:id="@+id/top_site_title"
29         android:layout_width="wrap_content"
30         android:layout_height="wrap_content"
31         android:maxWidth="84dp"
32         android:layout_gravity="center_horizontal"
33         android:layout_marginTop="@dimen/top_sites_text_margin_top"
34         android:drawablePadding="2dp"
35         android:gravity="center"
36         android:textAlignment="center"
37         android:singleLine="true"
38         android:textColor="@color/fx_mobile_text_color_primary"
39         android:textSize="12sp"
40         app:layout_constraintLeft_toLeftOf="parent"
41         app:layout_constraintRight_toRightOf="parent"
42         app:layout_constraintTop_toBottomOf="@id/favicon_card"
43         tools:ignore="RtlCompat,SmallSp"
44         tools:text="Mozilla"/>
46     <TextView
47         android:id="@+id/top_site_subtitle"
48         android:layout_width="wrap_content"
49         android:layout_height="wrap_content"
50         android:maxWidth="84dp"
51         android:layout_gravity="center_horizontal"
52         android:gravity="center"
53         android:textAlignment="center"
54         android:singleLine="true"
55         android:text="@string/top_sites_sponsored_label"
56         android:textColor="@color/fx_mobile_text_color_secondary"
57         android:textSize="10sp"
58         android:visibility="invisible"
59         app:layout_constraintLeft_toLeftOf="parent"
60         app:layout_constraintRight_toRightOf="parent"
61         app:layout_constraintTop_toBottomOf="@id/top_site_title"
62         tools:ignore="RtlCompat,SmallSp"
63         tools:visibility="visible"/>
65 </androidx.constraintlayout.widget.ConstraintLayout>