aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-05-31 15:23:17 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-05-31 15:23:17 +0200
commitfde5f0e26a394310f8b6b7a122c9240fa2883de3 (patch)
tree721049b1a9aed8a26b3fdce34b19100fced72786 /app/src/main
parentfc2156374611421c242ff7d65315f52fe57ceecf (diff)
Changed the the prev and next button for top anime
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt5
-rw-r--r--app/src/main/res/layout/top_anime_page.xml16
2 files changed, 5 insertions, 16 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt
index 56f7a49..5dc64ff 100644
--- a/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt
+++ b/app/src/main/java/xyz/adjutor/aniki/presentation/view/fragment/TopAnimeFragment.kt
@@ -6,7 +6,6 @@ import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.fragment.app.Fragment
-import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
@@ -38,10 +37,6 @@ class TopAnimeFragment : Fragment() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
- //button to return to the home page
- view.findViewById<Button>(R.id.button_home).setOnClickListener {
- findNavController().navigate(R.id.action_TopAnimePage_to_HomePage)
- }
view.findViewById<Button>(R.id.button_prev).setOnClickListener {
controller.onButtonPrevClick()
}
diff --git a/app/src/main/res/layout/top_anime_page.xml b/app/src/main/res/layout/top_anime_page.xml
index 0835c11..8f52f97 100644
--- a/app/src/main/res/layout/top_anime_page.xml
+++ b/app/src/main/res/layout/top_anime_page.xml
@@ -8,6 +8,7 @@
tools:context=".presentation.view.fragment.TopAnimeFragment">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ android:paddingVertical="50dp"
android:id="@+id/swiperefresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -30,16 +31,8 @@
android:layout_height="wrap_content"
android:text="@string/prev"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@id/button_home" />
-
- <Button
- android:id="@+id/button_home"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/home"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/button_next"
@@ -47,6 +40,7 @@
android:layout_height="wrap_content"
android:text="@string/next"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toEndOf="@id/button_home" />
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file