鸿蒙Harmony 设置状态栏颜色
鸿蒙Harmony 设置状态栏颜色@Overridepublic void onStart(Intent intent) {Window window = getWindow();window.setStatusBarColor(Color.BLACK.getValue());window.setStatusBarVisibility(Component.VISIBLE);super.onStar
·
鸿蒙Harmony 设置状态栏颜色
@Override
public void onStart(Intent intent) {
Window window = getWindow();
window.setStatusBarColor(Color.BLACK.getValue());
window.setStatusBarVisibility(Component.VISIBLE);
super.onStart(intent);
super.setMainRoute(MainAbilitySlice.class.getName());
}
setStatusBarColor 与 setStatusBarVisibility 要配合使用哦
Gitee 鸿蒙应用开发示例
https://gitee.com/liukerui/harmony-app-examples.git
更多推荐
已为社区贡献1条内容
所有评论(0)