我创建了一个android应用程序。现在,当方向为垂直方向的图像加载罚款,这是我希望它喜欢这个 ImageView的图像在水平方向上定位错误
` 但是当我打开设备水平这一形象被设定在imageview的左下角的正确方法
的XML为ImageView的是如下面`
<ImageView
android:id="@+id/backdrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="matrix"
android:fitsSystemWindows="true"
app:layout_collapseMode="parallax" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_collapseMode="pin" />
what is the reason causing this behavior ?? is it due to
机器人:scaleType = “矩阵”`属性??任何帮助将不胜感激。
我真正想要的是,图像的左上角应该与imageview的左上角重合,因为海报比设备屏幕大得多。任何想法如何做到这一点? – Infamous
尝试用fitStart –
nop bro ..没有工作,实际上使情况变得更糟糕..l0 – Infamous