在我的应用中,我想显示一个简单的图片,
在我的Samsung galaxy S7 Real设备上,图像很好,底部的导航栏不是视图的一部分,而是手机本身的一部分.
存在整个图像.
在Android Emulator上,底部导航栏是视图的一部分,图像被部分隐藏
这是我简单的线性布局
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:fitsSystemwindows="true" androID:background="@color/md_blue_50" androID:orIEntation="vertical"> <include androID:ID="@+ID/app_bar" layout="@layout/toolbar"/> <ImageVIEw androID:ID="@+ID/photo_image_large" androID:adjustVIEwBounds="true" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:layout_gravity="fill_vertical" androID:scaleType="fitXY"/></linearLayout>
这是AndroID Emulator屏幕截图
android emulator
这是我的三星galaxy Real Device屏幕截图
android real device
该问题还出现在应用程序的回收器视图中,图像的底部在androID模拟器上被截断了…
解决方法:
这是因为androID:fitSystemwindows将其设置为false并且应该很好
总结以上是内存溢出为你收集整理的底部导航栏隐藏视图的一部分全部内容,希望文章能够帮你解决底部导航栏隐藏视图的一部分所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)