mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-16 03:47:24 +00:00
49 lines
2.0 KiB
XML
49 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<EditText
|
|
android:id="@+id/search"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:background="@drawable/search_background"
|
|
android:hint="@string/fragment_home_search"
|
|
android:textColor="@color/soft_gray"
|
|
android:textSize="16sp"
|
|
android:layout_marginStart="8dp"
|
|
android:drawablePadding="8dp"
|
|
android:paddingHorizontal="25dp"
|
|
android:imeOptions="actionSearch"
|
|
android:inputType="text"
|
|
app:layout_constraintEnd_toStartOf="@id/btn_notification"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
android:drawableStart="@drawable/baseline_search_24" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/btn_notification"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:backgroundTint="@color/white"
|
|
android:src="@drawable/outline_notifications_24"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintBottom_toBottomOf="@id/search"
|
|
app:layout_constraintEnd_toStartOf="@id/btn_cart"
|
|
app:layout_constraintTop_toTopOf="@id/search"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btn_cart"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:padding="8dp"
|
|
android:backgroundTint="@color/white"
|
|
android:src="@drawable/outline_shopping_cart_24"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintBottom_toBottomOf="@id/search"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/search"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |