diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/MainActivity.java b/app/src/main/java/org/ntlab/acanthus_client/views/MainActivity.java index c5cbeb8..da35e65 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/MainActivity.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/MainActivity.java @@ -5,7 +5,7 @@ import com.google.android.material.bottomnavigation.BottomNavigationView; import org.ntlab.acanthus_client.R; -import org.ntlab.acanthus_client.databinding.ActivityMain3Binding; +import org.ntlab.acanthus_client.databinding.ActivityMainBinding; import androidx.appcompat.app.AppCompatActivity; import androidx.navigation.NavController; @@ -16,22 +16,22 @@ public class MainActivity extends AppCompatActivity { - private ActivityMain3Binding binding; + private ActivityMainBinding binding; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - binding = ActivityMain3Binding.inflate(getLayoutInflater()); + binding = ActivityMainBinding.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) + R.id.navigation_home, R.id.navigation_search, R.id.navigation_make, R.id.navigation_mypage) .build(); - NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_activity_main3); + NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_activity_main); NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration); NavigationUI.setupWithNavController(binding.navView, navController); }