react native:andorid给iOS的navi多出20像素左右
来源:互联网 发布:灵魂摆渡3风华绝代知乎 编辑:程序博客网 时间:2024/05/22 00:43
react native:andorid给iOS的navi多出20像素左右
头部发白了
安卓普遍的navi头都多出来一点,就是statebar多了20像素,一个沉浸式的问题,暂时这样处理,这样iOS和安卓大体就差不多了
package com.qinggu.damai;import android.view.View;import com.facebook.react.ReactActivity;import com.facebook.react.ReactPackage;import com.facebook.react.shell.MainReactPackage;import com.imagepicker.ImagePickerPackage;import java.util.Arrays;import java.util.List;public class MainActivity extends ReactActivity { /** * 沉浸式问题处理 */ void stateBartoDo() { getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION); } /** * Returns the name of the main component registered from JavaScript. * This is used to schedule rendering of the component. */ @Override protected String getMainComponentName() { stateBartoDo(); return "JdApp"; } /** * Returns whether dev mode should be enabled. * This enables e.g. the dev menu. */ @Override protected boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } /** * A list of packages used by the app. If the app uses additional views * or modules besides the default ones, add more packages here. */ @Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new ImagePickerPackage() ); }}
0 0
- react native:andorid给iOS的navi多出20像素左右
- Andorid 10 个最常见的 React Native Android 问题
- React Native 之 获取不同屏幕的像素密度
- React-native 出bug 记录
- React Native基于webstorm开发出更快速的模板
- react-native的兼容性(Android、Ios)
- React-Native (iOS)环境的配置
- React Native 与iOS的通信
- React-native 获取屏幕宽度/高度/像素
- react native PixelRatio获取像素密度
- react native 离线ios
- React-Native for iOS
- iOS React Native 入门
- react native iOS打包
- React Native、Android、IOS
- iOS React-Native入门
- 给所有开发者的React Native详细入门指南
- 给所有开发者的React Native详细入门指南
- VAGRANT命令(一)
- Activity启动另一个Activity,带结果的返回
- JavaScript对象复制、扩展(改变原对象的引用,避免原对象被动态的改变值);
- 关于SAP系统变量
- 自适应布局,完美解决左右两边固定大小,中间内容适应大小。
- react native:andorid给iOS的navi多出20像素左右
- Jenkins的使用---项目构建,邮件通知
- okhttp 3.0 多参数传递
- MyBatis缓存配置
- 国军标-Gjb软件设计说明书模板
- android 面试题
- 面向对象整体GIS数据模型的设计与实现
- Python学习-格式化输出
- [Leetcode]61. Rotate List