【发布时间】:2017-03-22 13:02:15
【问题描述】:
在我的应用程序中,我想显示一个简单的图像,
在我的三星 Galaxy S7 Real 设备上,图像很好,底部导航栏不是视图的一部分,而是手机本身的一部分。 整个图像都存在。
在 Android 模拟器上,底部导航栏是视图的一部分,图像部分隐藏
这是我的简单线性布局
<?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>
这是安卓模拟器截图
这是我的三星 Galaxy 真机屏幕截图
问题也出现在应用中的recycler Views android模拟器上图片的底部被截断...
【问题讨论】:
标签: android