2020-04-30 17:54:21 +02:00
|
|
|
<?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"
|
2020-09-10 22:09:14 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal">
|
2020-04-30 17:54:21 +02:00
|
|
|
|
|
|
|
|
2020-10-04 23:27:06 +02:00
|
|
|
<androidx.appcompat.widget.SearchView
|
2020-04-30 17:54:21 +02:00
|
|
|
android:id="@+id/search"
|
2020-05-03 14:30:01 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-04 23:27:06 +02:00
|
|
|
app:iconifiedByDefault="false"
|
2020-05-03 14:30:01 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-10-04 23:27:06 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:queryHint="@string/search" />
|
2020-05-03 14:30:01 +02:00
|
|
|
|
2020-04-30 17:54:21 +02:00
|
|
|
<ProgressBar
|
2020-05-03 14:30:01 +02:00
|
|
|
android:id="@+id/discoverProgressBar"
|
2020-04-30 17:54:21 +02:00
|
|
|
style="?android:attr/progressBarStyle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-10-04 23:27:06 +02:00
|
|
|
android:layout_marginTop="16dp"
|
2020-04-30 17:54:21 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/search" />
|
|
|
|
|
2020-05-03 14:30:01 +02:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/discoverRefreshLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2020-10-04 23:27:06 +02:00
|
|
|
android:layout_marginTop="10dp"
|
2020-05-03 14:30:01 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2020-04-30 17:54:21 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-05-03 14:30:01 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/search">
|
2020-10-04 23:27:06 +02:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2020-05-03 14:30:01 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-10-04 23:27:06 +02:00
|
|
|
android:layout_height="match_parent">
|
2021-05-09 22:14:47 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2020-10-31 11:21:56 +01:00
|
|
|
<androidx.constraintlayout.motion.widget.MotionLayout
|
|
|
|
android:id="@+id/motionLayout"
|
2020-10-04 23:27:06 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-11-02 21:58:01 +01:00
|
|
|
app:layoutDescription="@xml/error_layout_xml_error_scene">
|
2020-10-31 11:21:56 +01:00
|
|
|
|
2020-11-02 13:28:27 +01:00
|
|
|
<include layout="@layout/error_layout"/>
|
2020-10-31 11:21:56 +01:00
|
|
|
|
2020-10-04 23:27:06 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/discoverText"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:text="@string/discover"
|
2020-10-31 11:21:56 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-03-15 19:01:43 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/errorLayout"
|
|
|
|
app:drawableStartCompat="@drawable/explore_24dp" />
|
2020-10-31 11:21:56 +01:00
|
|
|
|
2020-10-04 23:27:06 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/discoverList"
|
2020-10-31 11:21:56 +01:00
|
|
|
android:layout_width="0dp"
|
2020-10-04 23:27:06 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-10-31 11:21:56 +01:00
|
|
|
android:nestedScrollingEnabled="false"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/discoverText" />
|
2020-05-03 14:30:01 +02:00
|
|
|
|
2020-10-31 11:21:56 +01:00
|
|
|
</androidx.constraintlayout.motion.widget.MotionLayout>
|
2021-05-09 22:14:47 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/discoverNoInfiniteLoad"
|
|
|
|
android:visibility="invisible"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/discover_no_infinite_load"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/motionLayout"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-10-04 23:27:06 +02:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2021-05-09 22:14:47 +02:00
|
|
|
|
2020-05-03 14:30:01 +02:00
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2020-04-30 17:54:21 +02:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|