From 416450b33960588984d88659d596703e84c8c2d5 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 12 Feb 2021 11:26:07 +0100 Subject: Renaming. --- app/src/main/java/xyz/adjutor/aniki/NewsPage.kt | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/src/main/java/xyz/adjutor/aniki/NewsPage.kt (limited to 'app/src/main/java/xyz/adjutor/aniki/NewsPage.kt') diff --git a/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt b/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt new file mode 100644 index 0000000..88427fa --- /dev/null +++ b/app/src/main/java/xyz/adjutor/aniki/NewsPage.kt @@ -0,0 +1,32 @@ +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 NewsPage : Fragment() { + + override fun onCreateView( + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? + ): View? { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.news_page, container, false) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + view.findViewById