aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/search_manga_page.xml
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-03-02 12:05:27 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2021-03-02 12:05:27 +0100
commit81a89af9aa3c35a991eced93eeaa5066804e3ee5 (patch)
tree2c63470f6d7ddf20ede498ea3e4edf181e83ddd8 /app/src/main/res/layout/search_manga_page.xml
parent6d5df6250d4c060840b64d7441525f85146fb87b (diff)
Search working for mangas.
Diffstat (limited to 'app/src/main/res/layout/search_manga_page.xml')
-rw-r--r--app/src/main/res/layout/search_manga_page.xml29
1 files changed, 23 insertions, 6 deletions
diff --git a/app/src/main/res/layout/search_manga_page.xml b/app/src/main/res/layout/search_manga_page.xml
index a6de772..1470311 100644
--- a/app/src/main/res/layout/search_manga_page.xml
+++ b/app/src/main/res/layout/search_manga_page.xml
@@ -7,10 +7,27 @@
android:background="@color/very_dark_purple"
tools:context=".manga.search.SearchMangaPage">
- <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
- android:id="@+id/swiperefresh"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/tiet_query"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:textStyle="bold"
+ app:layout_constraintBottom_toTopOf="@id/recycler_view"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/button_query"/>
+
+ <Button
+ android:id="@+id/button_query"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toTopOf="@id/recycler_view"
+ app:layout_constraintStart_toEndOf="@id/tiet_query"
+ android:text="@string/search"
+ />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
@@ -20,9 +37,8 @@
app:layout_constraintBottom_toTopOf="@+id/button_home"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/tiet_query"
tools:listitem="@layout/item_layout" />
- </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<Button
android:id="@+id/button_home"
@@ -33,4 +49,5 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
+
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file