Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <merge xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="48dp"
- app:cardBackgroundColor="@color/white"
- app:cardCornerRadius="100dp"
- app:cardElevation="6dp"
- tools:parentTag="com.google.android.material.card.MaterialCardView">
- <androidx.appcompat.widget.LinearLayoutCompat
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingHorizontal="4dp">
- <androidx.appcompat.widget.AppCompatImageView
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:padding="14dp"
- app:srcCompat="@drawable/search"
- app:tint="@color/grey_text" />
- <androidx.appcompat.widget.AppCompatEditText
- android:id="@+id/_inputSearch"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_centerVertical="true"
- android:layout_weight="1"
- android:background="@null"
- android:gravity="center_vertical"
- android:hint="@string/search"
- android:imeOptions="actionSearch"
- android:inputType="textCapWords"
- android:paddingHorizontal="8dp"
- android:singleLine="true"
- android:textAppearance="@style/TextAppearance.Regular16" />
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/_buttonClearSearch"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:background="@drawable/ripple_black_circle_transparent"
- android:padding="14dp"
- android:visibility="gone"
- app:srcCompat="@drawable/close"
- app:tint="@color/grey_text"
- tools:visibility="visible" />
- </androidx.appcompat.widget.LinearLayoutCompat>
- </merge>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement