mirror of
https://github.com/ZCShou/GoGoGo.git
synced 2026-06-05 21:00:50 +08:00
feat: show version on navbar
This commit is contained in:
parent
79945f5ef8
commit
06667cc8d3
@ -451,6 +451,11 @@ public class MainActivity extends BaseActivity implements SensorEventListener {
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
// 直接获取第 0 个头部视图
|
||||
View headerView = mNavigationView.getHeaderView(0);
|
||||
TextView app_version = headerView.findViewById(R.id.app_version);
|
||||
app_version.setText(GoUtils.getVersionName(this));
|
||||
}
|
||||
|
||||
/*============================== 主界面地图 相关 ==============================*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user