<?xml version="1.0" encoding="utf-8"?>
|
<android.support.constraint.ConstraintLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/white"
|
android:focusable="true"
|
android:focusableInTouchMode="true"
|
tools:ignore="Autofill">
|
|
<EditText
|
android:id="@+id/edt_search"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:background="@color/white"
|
android:hint="@string/search"
|
android:paddingStart="@dimen/dimen8"
|
android:paddingEnd="@dimen/dimen8"
|
android:paddingTop="@dimen/dimen6"
|
android:paddingBottom="@dimen/dimen6"
|
android:textSize="@dimen/sp_14"
|
android:maxLines="1"
|
android:ellipsize="end"
|
android:inputType="text"
|
android:drawableStart="@mipmap/ic_search"
|
android:drawablePadding="@dimen/dimen8"
|
android:imeOptions="actionSearch"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/btn_clear"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
<ImageView
|
android:id="@+id/btn_clear"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@drawable/ic_baseline_backspace_24"
|
android:layout_marginEnd="@dimen/dimen8"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
</android.support.constraint.ConstraintLayout>
|