From 9ae95694db46e95f8d0ae9f9ea0a49d2005fd250 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Tue, 9 Feb 2021 11:31:06 +0100 Subject: Initial commit --- .../main/java/xyz/adjutor/aniki/FirstFragment.kt | 31 +++++++++++++++++ .../main/java/xyz/adjutor/aniki/MainActivity.kt | 40 ++++++++++++++++++++++ app/src/main/java/xyz/adjutor/aniki/News.kt | 5 +++ .../main/java/xyz/adjutor/aniki/SecondFragment.kt | 31 +++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/MainActivity.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/News.kt create mode 100644 app/src/main/java/xyz/adjutor/aniki/SecondFragment.kt (limited to 'app/src/main/java/xyz') diff --git a/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt b/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt new file mode 100644 index 0000000..05e5673 --- /dev/null +++ b/app/src/main/java/xyz/adjutor/aniki/FirstFragment.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 default destination in the navigation. + */ +class FirstFragment : Fragment() { + + override fun onCreateView( + inflater: LayoutInflater, container: ViewGroup?, + savedInstanceState: Bundle? + ): View? { + // Inflate the layout for this fragment + return inflater.inflate(R.layout.fragment_first, container, false) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + view.findViewById