summaryrefslogtreecommitdiff
path: root/app/src/main/java/xyz/adjutor/aniki/HomePage.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/xyz/adjutor/aniki/HomePage.kt')
-rw-r--r--app/src/main/java/xyz/adjutor/aniki/HomePage.kt27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/main/java/xyz/adjutor/aniki/HomePage.kt b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt
new file mode 100644
index 0000000..b6d45c3
--- /dev/null
+++ b/app/src/main/java/xyz/adjutor/aniki/HomePage.kt
@@ -0,0 +1,27 @@
+package xyz.adjutor.aniki
+
+import android.os.Bundle
+import androidx.fragment.app.Fragment
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.widget.Button
+import androidx.navigation.fragment.findNavController
+
+class HomePage : Fragment() {
+
+ override fun onCreateView(
+ inflater: LayoutInflater, container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ // Inflate the layout for this fragment
+ return inflater.inflate(R.layout.home_page, container, false)
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+ view.findViewById<Button>(R.id.button_top_manga).setOnClickListener {
+ findNavController().navigate(R.id.action_HomePage_to_TopMangaPage)
+ }
+ }
+} \ No newline at end of file