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"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
android:id="@+id/search"
|
|
|
|
android:layout_width="250dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-01 10:39:25 +02:00
|
|
|
android:layout_margin="10dp"
|
2020-04-30 17:54:21 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:hint="Search"
|
|
|
|
app:errorEnabled="true"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/searchButton"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-05-03 14:30:01 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-04-30 17:54:21 +02:00
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
|
|
android:id="@+id/searchEditText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ems="10"
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
android:inputType="textUri" />
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
2020-05-03 14:30:01 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/searchButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:text="Search"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/search"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/search" />
|
|
|
|
|
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"
|
|
|
|
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"
|
|
|
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
|
|
|
|
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">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/discoverList"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
app:layoutManager="LinearLayoutManager"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/search" />
|
|
|
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2020-04-30 17:54:21 +02:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|