search_selector.xml (2319B)
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 <merge xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:tools="http://schemas.android.com/tools" 7 xmlns:app="http://schemas.android.com/apk/res-auto" 8 tools:layout_height="wrap_content" 9 tools:layout_width="wrap_content"> 10 11 <com.google.android.material.card.MaterialCardView 12 android:id="@+id/search_selector" 13 android:layout_width="40dp" 14 android:layout_height="28dp" 15 android:layout_marginHorizontal="8dp" 16 app:cardBackgroundColor="?attr/layer2" 17 app:cardCornerRadius="4dp" 18 app:cardElevation="0dp"> 19 20 <androidx.constraintlayout.widget.ConstraintLayout 21 android:id="@+id/tab_item" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:layout_marginVertical="2dp" 25 android:layout_marginStart="2dp" 26 android:layout_marginEnd="4dp"> 27 28 <com.google.android.material.imageview.ShapeableImageView 29 android:id="@+id/icon" 30 android:layout_width="24dp" 31 android:layout_height="24dp" 32 android:layout_gravity="center" 33 app:shapeAppearanceOverlay="@style/SearchSelectorIconStyle" 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintTop_toTopOf="parent" 36 tools:src="@drawable/ic_search" /> 37 38 <androidx.appcompat.widget.AppCompatImageView 39 android:id="@+id/arrow" 40 android:layout_width="6dp" 41 android:layout_height="6dp" 42 android:importantForAccessibility="no" 43 app:srcCompat="@drawable/ic_chevron_down_6" 44 app:tint="?attr/textPrimary" 45 app:layout_constraintEnd_toEndOf="parent" 46 app:layout_constraintTop_toTopOf="parent" 47 app:layout_constraintBottom_toBottomOf="parent" /> 48 49 </androidx.constraintlayout.widget.ConstraintLayout> 50 51 </com.google.android.material.card.MaterialCardView> 52 </merge>