ナビゲーションに追加
This commit is contained in:
parent
76bd76d915
commit
3d5c1cec09
|
@ -118,6 +118,10 @@ public class MainActivity extends AppCompatActivity {
|
||||||
getSupportFragmentManager().beginTransaction()
|
getSupportFragmentManager().beginTransaction()
|
||||||
.replace(findViewById(R.id.fragmentContainerView).getId(), NotificationFragment.newInstance("test", "test"))
|
.replace(findViewById(R.id.fragmentContainerView).getId(), NotificationFragment.newInstance("test", "test"))
|
||||||
.commit();
|
.commit();
|
||||||
|
} else if (v.getItemId() == findViewById(R.id.navigation_settings).getId()) {
|
||||||
|
getSupportFragmentManager().beginTransaction()
|
||||||
|
.replace(findViewById(R.id.fragmentContainerView).getId(), SettingFragment.newInstance())
|
||||||
|
.commit();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user