From 97ff499413e5dae958ac3741616e2ee84a188871 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 12 Feb 2021 12:35:33 +0100 Subject: Adding Article and Top Manga pages. --- app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt | 31 ++++++++++++++++++++++ app/src/main/java/xyz/adjutor/aniki/HomePage.kt | 6 ++--- app/src/main/java/xyz/adjutor/aniki/NewsPage.kt | 2 +- .../main/java/xyz/adjutor/aniki/TopMangaPage.kt | 31 ++++++++++++++++++++++ 4 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/TopMangaPage.kt (limited to 'app/src/main/java/xyz/adjutor') diff --git a/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt b/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt new file mode 100644 index 0000000..68af902 --- /dev/null +++ b/app/src/main/java/xyz/adjutor/aniki/ArticlePage.kt @@ -0,0 +1,31 @@ +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 + +/** + * A simple [Fragment] subclass as the second destination in the navigation. + */ +class ArticlePage : Fragment() { + + override fun onCreateView( + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? + ): View? { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.article_page, container, false) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + view.findViewById