2019-08-19 16:50:33 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-05-30 14:12:04 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-08-19 16:50:33 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2020-05-30 14:12:04 +02:00
|
|
|
android:layout_height="match_parent">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-05-30 14:12:04 +02:00
|
|
|
<LinearLayout
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-05-30 14:12:04 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:context=".activities.SearchActivity">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-05-30 14:12:04 +02:00
|
|
|
<androidx.cardview.widget.CardView
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-22 21:48:31 +02:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="0dp"
|
2020-05-30 14:12:04 +02:00
|
|
|
android:elevation="4dp">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-06-22 21:48:31 +02:00
|
|
|
<LinearLayout
|
2020-05-30 14:12:04 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-06-22 21:48:31 +02:00
|
|
|
android:orientation="vertical">
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-06-22 21:48:31 +02:00
|
|
|
<androidx.appcompat.widget.SearchView
|
|
|
|
android:id="@+id/search"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:iconifiedByDefault="false"
|
|
|
|
app:queryBackground="@android:color/transparent"
|
|
|
|
app:queryHint="@string/search_placeholder" />
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-06-22 21:48:31 +02:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/search_spinner"
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="-12dp"
|
|
|
|
android:layout_marginBottom="-12dp"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="invisible" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-05-30 14:12:04 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/search_empty"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2021-07-01 13:11:11 +02:00
|
|
|
android:drawableTop="@drawable/funkwhaleshape"
|
2020-05-30 14:12:04 +02:00
|
|
|
android:drawablePadding="16dp"
|
|
|
|
android:drawableTint="#525252"
|
|
|
|
android:text="@string/search_welcome"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/search_no_results"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
2021-07-01 13:11:11 +02:00
|
|
|
android:drawableTop="@drawable/funkwhaleshape"
|
2020-05-30 14:12:04 +02:00
|
|
|
android:drawablePadding="16dp"
|
|
|
|
android:drawableTint="#525252"
|
|
|
|
android:text="@string/search_no_results"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/results"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:itemCount="10"
|
|
|
|
tools:listitem="@layout/row_track" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2019-08-19 16:50:33 +02:00
|
|
|
|
2020-05-30 14:12:04 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/container"
|
2019-08-19 16:50:33 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-05-30 14:12:04 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|