Advertisement
zihadrizkyef

component_search_3.xml

Jan 30th, 2022
1,339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.15 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <merge xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="48dp"
  7.    app:cardBackgroundColor="@color/white"
  8.    app:cardCornerRadius="100dp"
  9.    app:cardElevation="6dp"
  10.    tools:parentTag="com.google.android.material.card.MaterialCardView">
  11.  
  12.     <androidx.appcompat.widget.LinearLayoutCompat
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content"
  15.        android:gravity="center_vertical"
  16.        android:orientation="horizontal"
  17.        android:paddingHorizontal="4dp">
  18.  
  19.         <androidx.appcompat.widget.AppCompatImageView
  20.            android:layout_width="48dp"
  21.            android:layout_height="48dp"
  22.            android:padding="14dp"
  23.            app:srcCompat="@drawable/search"
  24.            app:tint="@color/grey_text" />
  25.  
  26.         <androidx.appcompat.widget.AppCompatEditText
  27.            android:id="@+id/_inputSearch"
  28.            android:layout_width="0dp"
  29.            android:layout_height="match_parent"
  30.            android:layout_centerVertical="true"
  31.            android:layout_weight="1"
  32.            android:background="@null"
  33.            android:gravity="center_vertical"
  34.            android:hint="@string/search"
  35.            android:imeOptions="actionSearch"
  36.            android:inputType="textCapWords"
  37.            android:paddingHorizontal="8dp"
  38.            android:singleLine="true"
  39.            android:textAppearance="@style/TextAppearance.Regular16" />
  40.  
  41.         <androidx.appcompat.widget.AppCompatImageView
  42.            android:id="@+id/_buttonClearSearch"
  43.            android:layout_width="48dp"
  44.            android:layout_height="48dp"
  45.            android:background="@drawable/ripple_black_circle_transparent"
  46.            android:padding="14dp"
  47.            android:visibility="gone"
  48.            app:srcCompat="@drawable/close"
  49.            app:tint="@color/grey_text"
  50.            tools:visibility="visible" />
  51.  
  52.     </androidx.appcompat.widget.LinearLayoutCompat>
  53.  
  54. </merge>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement