LibreTube/app/src/main/res/layout/fragment_search.xml

101 lines
4.3 KiB
XML
Raw Normal View History

2021-12-28 01:37:07 +05:30
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-06-03 00:40:16 +05:30
tools:context=".fragments.SearchFragment">
2021-12-28 01:37:07 +05:30
2022-05-15 17:24:13 +05:30
<LinearLayout
2022-05-15 13:38:47 +05:30
android:id="@+id/searchbar_holder"
2022-05-09 22:10:51 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2022-05-15 13:38:47 +05:30
<com.google.android.material.card.MaterialCardView
android:id="@+id/outlinedTextField"
style="@style/Widget.Material3.CardView.Filled"
2022-05-15 17:24:13 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-05-15 17:24:13 +05:30
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="16dp"
2022-06-27 22:47:52 +05:30
android:layout_weight="1"
2022-06-04 12:05:38 +05:30
app:cardCornerRadius="24dp"
2022-05-15 13:38:47 +05:30
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2022-06-06 21:31:04 +05:30
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
2022-06-07 12:22:11 +05:30
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2022-05-15 13:38:47 +05:30
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-07-28 19:41:35 +05:30
android:layout_marginStart="20dp"
android:layout_marginEnd="30dp"
2022-05-15 13:38:47 +05:30
android:background="@android:color/transparent"
2022-06-07 12:22:11 +05:30
app:hintEnabled="false">
2022-06-10 14:28:33 +05:30
<EditText
2022-06-07 12:22:11 +05:30
android:id="@+id/autoCompleteTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:hint="@string/search_hint"
android:imeOptions="actionSearch"
2022-07-30 17:30:14 +05:30
android:inputType="textFilter|textNoSuggestions"
2022-06-07 12:22:11 +05:30
android:maxLines="1"
android:padding="12dp" />
2022-05-15 13:38:47 +05:30
2022-06-07 12:22:11 +05:30
</com.google.android.material.textfield.TextInputLayout>
2022-05-15 13:38:47 +05:30
2022-06-06 21:31:04 +05:30
<ImageView
android:id="@+id/clearSearch_imageView"
android:layout_width="20dp"
android:layout_height="20dp"
2022-07-28 19:41:35 +05:30
android:layout_alignParentEnd="true"
2022-06-06 21:31:04 +05:30
android:layout_centerVertical="true"
2022-07-28 19:41:35 +05:30
android:layout_marginEnd="16dp"
2022-06-27 22:47:52 +05:30
android:src="@drawable/ic_close" />
2022-06-06 21:31:04 +05:30
2022-06-07 12:22:11 +05:30
</RelativeLayout>
2022-05-15 13:38:47 +05:30
</com.google.android.material.card.MaterialCardView>
<ImageView
android:id="@+id/filterMenu_imageView"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="25dp"
2022-07-28 19:41:35 +05:30
android:layout_marginEnd="20dp"
2022-06-27 22:47:52 +05:30
android:layout_weight="0"
2022-05-15 13:38:47 +05:30
android:src="@drawable/ic_filter" />
2022-05-15 17:24:13 +05:30
</LinearLayout>
2021-12-28 01:37:07 +05:30
2022-05-09 22:10:51 +05:30
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/history_recycler"
android:layout_width="0dp"
android:layout_height="0dp"
2022-06-27 22:16:44 +05:30
android:layout_marginVertical="10dp"
2022-06-27 22:47:52 +05:30
android:visibility="gone"
2022-05-09 22:10:51 +05:30
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2022-06-27 22:47:52 +05:30
app:layout_constraintTop_toBottomOf="@+id/searchbar_holder" />
2021-12-28 01:37:07 +05:30
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/search_recycler"
android:layout_width="0dp"
android:layout_height="0dp"
2022-05-15 17:24:13 +05:30
android:layout_margin="10dp"
2021-12-28 01:37:07 +05:30
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2022-06-03 22:19:48 +05:30
app:layout_constraintTop_toBottomOf="@+id/searchbar_holder" />
2021-12-28 01:37:07 +05:30
</androidx.constraintlayout.widget.ConstraintLayout>