From c10fb88602a9734ca3b123d3d9111b5d314fa95a Mon Sep 17 00:00:00 2001 From: pgo4rwty6 Date: Sat, 26 Nov 2022 16:05:47 +0800 Subject: [PATCH] Delete 'AndroidStudio_projects/app/src/main/java/com/example/hamburger/MainActivity2.java' --- .../com/example/hamburger/MainActivity2.java | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 AndroidStudio_projects/app/src/main/java/com/example/hamburger/MainActivity2.java diff --git a/AndroidStudio_projects/app/src/main/java/com/example/hamburger/MainActivity2.java b/AndroidStudio_projects/app/src/main/java/com/example/hamburger/MainActivity2.java deleted file mode 100644 index 522eda9..0000000 --- a/AndroidStudio_projects/app/src/main/java/com/example/hamburger/MainActivity2.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.example.hamburger; - -import android.os.Bundle; - -import com.google.android.material.bottomnavigation.BottomNavigationView; - -import androidx.appcompat.app.AppCompatActivity; -import androidx.navigation.NavController; -import androidx.navigation.Navigation; -import androidx.navigation.ui.AppBarConfiguration; -import androidx.navigation.ui.NavigationUI; - -import com.example.hamburger.databinding.ActivityMain2Binding; - -public class MainActivity2 extends AppCompatActivity { - - private ActivityMain2Binding binding; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - binding = ActivityMain2Binding.inflate(getLayoutInflater()); - setContentView(binding.getRoot()); - - BottomNavigationView navView = findViewById(R.id.nav_view); - // Passing each menu ID as a set of Ids because each - // menu should be considered as top level destinations. - AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder( - R.id.navigation_home, R.id.navigation_dashboard, R.id.navigation_notifications) - .build(); - NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_activity_main2); - NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration); - NavigationUI.setupWithNavController(binding.navView, navController); - } - -} \ No newline at end of file