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

60 lines
2.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"
tools:context=".SearchFragment"
2022-03-05 14:04:02 +05:30
android:focusable="true"
android:focusableInTouchMode="true"
>
2021-12-28 01:37:07 +05:30
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
2021-12-28 01:37:07 +05:30
android:layout_height="wrap_content"
android:id="@+id/outlinedTextField"
style="@style/Widget.Material3.CardView.Filled"
2022-01-20 17:28:59 +05:30
app:layout_constraintEnd_toEndOf="parent"
2021-12-28 01:37:07 +05:30
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_margin="5dp"
>
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintEnabled="false"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:background="@android:color/transparent"
>
<AutoCompleteTextView
android:id="@+id/autoCompleteTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Search"
android:imeOptions="actionSearch"
android:inputType="text"
android:maxLines="1"
android:background="@android:color/transparent"
android:padding="12dp" />
</com.google.android.material.textfield.TextInputLayout>
</com.google.android.material.card.MaterialCardView>
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"
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"
app:layout_constraintTop_toBottomOf="@+id/outlinedTextField"
/>
2021-12-28 01:37:07 +05:30
</androidx.constraintlayout.widget.ConstraintLayout>