mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 14:50:30 +05:30
62 lines
2.6 KiB
XML
62 lines
2.6 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".SearchFragment">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/outlinedTextField"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="20dp"
|
|
app:hintEnabled="false"
|
|
app:boxCornerRadiusBottomEnd="20dp"
|
|
app:boxCornerRadiusBottomStart="20dp"
|
|
app:boxCornerRadiusTopEnd="20dp"
|
|
app:boxCornerRadiusTopStart="20dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<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:padding="12dp" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<!-- <com.google.android.material.textfield.MaterialAutoCompleteTextView-->
|
|
<!-- android:id="@+id/autoCompleteTextView"-->
|
|
<!-- android:layout_width="0dp"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:layout_marginTop="7dp"-->
|
|
<!-- android:hint="@string/search_hint"-->
|
|
<!-- android:imeOptions="actionSearch"-->
|
|
<!-- android:inputType="text"-->
|
|
<!-- android:maxLines="1"-->
|
|
<!-- android:minHeight="48dp"-->
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/search_recycler"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_margin="10dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/outlinedTextField"
|
|
/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |