ナビゲーションに追加

This commit is contained in:
ろむねこ 2024-01-17 17:22:54 +09:00
parent 76bd76d915
commit 3d5c1cec09
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -118,6 +118,10 @@ public class MainActivity extends AppCompatActivity {
getSupportFragmentManager().beginTransaction()
.replace(findViewById(R.id.fragmentContainerView).getId(), NotificationFragment.newInstance("test", "test"))
.commit();
} else if (v.getItemId() == findViewById(R.id.navigation_settings).getId()) {
getSupportFragmentManager().beginTransaction()
.replace(findViewById(R.id.fragmentContainerView).getId(), SettingFragment.newInstance())
.commit();
}
return true;
});