当我点击“按钮”时,为什么底部导航正在移动,发生在底部导航上。
这是我的代码:
public void onClick(View v) {
switch (v.getId()) {
case R.id.diary_button:
Fragment diaryfragment = new DiaryFragment();
FragmentTransaction ft1 = getSupportFragmentManager().beginTransaction();
ft1.replace(R.id.content_frame, diaryfragment);
ft1.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
ft1.addToBackStack(null);
ft1.commit();
break;
........
}
}