我需要从 Fragment 访问我的标题项目,但我找不到方法来做到这一点。我见过:
View headerLayout = navigationView.getHeaderView(0);
但是,我不是在 NavigationDrawerActivity 本身上工作。我必须单独在 Fragment 中访问它。有没有办法让我实现这一目标?
android android-fragments
android ×1
android-fragments ×1