Bug 1891342 - Part 2: Update iconAccentViolet color to Violet70 r=android-reviewers...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / collections_list_item.xml
blob62e28d213ba59da3926394aaa8eaa3a41ff58bb9
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.cardview.widget.CardView 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/collection_item_tab"
9     android:layout_width="match_parent"
10     android:layout_height="wrap_content"
11     android:layout_marginTop="8dp"
12     android:layout_marginBottom="8dp"
13     android:clickable="true"
14     android:clipToPadding="false"
15     android:focusable="true"
16     android:foreground="?android:attr/selectableItemBackground"
17     app:cardBackgroundColor="?attr/layer2"
18     app:cardCornerRadius="@dimen/tab_corner_radius"
19     app:cardElevation="5dp">
21     <androidx.constraintlayout.widget.ConstraintLayout
22         android:layout_width="match_parent"
23         android:layout_height="wrap_content"
24         android:layout_margin="16dp">
26         <ImageView
27             android:id="@+id/collection_icon"
28             android:layout_width="wrap_content"
29             android:layout_height="wrap_content"
30             android:importantForAccessibility="no"
31             app:srcCompat="@drawable/ic_tab_collection"
32             app:tint="@null"
33             app:layout_constraintStart_toStartOf="parent"
34             app:layout_constraintTop_toTopOf="parent" />
36         <TextView
37             android:id="@+id/collection_item"
38             android:layout_width="0dp"
39             android:layout_height="wrap_content"
40             android:layout_marginStart="12dp"
41             android:ellipsize="end"
42             android:gravity="start"
43             android:maxLines="1"
44             android:minLines="1"
45             android:textAppearance="@style/Header16TextStyle"
46             app:layout_constraintEnd_toEndOf="parent"
47             app:layout_constraintStart_toEndOf="@+id/collection_icon"
48             app:layout_constraintTop_toTopOf="parent"
49             tools:text="@tools:sample/lorem/random" />
51         <TextView
52             android:id="@+id/collection_description"
53             android:layout_width="0dp"
54             android:layout_height="wrap_content"
55             android:layout_marginTop="4dp"
56             android:ellipsize="end"
57             android:maxLines="2"
58             android:minLines="2"
59             android:textColor="?attr/textSecondary"
60             app:layout_constraintBottom_toBottomOf="parent"
61             app:layout_constraintEnd_toEndOf="@+id/collection_item"
62             app:layout_constraintStart_toStartOf="@+id/collection_item"
63             app:layout_constraintTop_toBottomOf="@+id/collection_item"
64             tools:text="@tools:sample/lorem/random" />
65     </androidx.constraintlayout.widget.ConstraintLayout>
66 </androidx.cardview.widget.CardView>