From 3decfd9d0d043c710f48cc145027a7b6bd45df8f Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 12 Feb 2021 11:00:47 +0100 Subject: Renaming and adding some functions for the home buttons. --- .../main/java/xyz/adjutor/aniki/FirstFragment.kt | 11 +++++- .../main/java/xyz/adjutor/aniki/MainActivity.kt | 6 +-- .../main/java/xyz/adjutor/aniki/SecondFragment.kt | 3 +- app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/layout/fragment_first.xml | 46 ++++++++++++++-------- app/src/main/res/layout/fragment_second.xml | 10 +++-- app/src/main/res/values/strings.xml | 7 ++-- 7 files changed, 55 insertions(+), 30 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt b/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt index 05e5673..e2fa6eb 100644 --- a/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt +++ b/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt @@ -7,6 +7,7 @@ import android.view.View import android.view.ViewGroup import android.widget.Button import androidx.navigation.fragment.findNavController +import com.google.android.material.snackbar.Snackbar /** * A simple [Fragment] subclass as the default destination in the navigation. @@ -24,8 +25,16 @@ class FirstFragment : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.findViewById