[英]How do I prevent wallpaper from being zoomed
At Last I found one problem on setting the Image as wallpaper the image gets zoomed in.. Here is the screen shot of the image selection i made inside the app(First pic) after setting it has Wallpaper it appears like this(Second pic) 最后,我发现了将图像设置为放大图像的墙纸时遇到的一个问题。这是我在应用程序(第一个图片)中设置了墙纸后选择的图像的屏幕截图(第二个图片)
The code for this is: 的代码是:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="@color/background"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:contentDescription="@string/desc" />
<ProgressBar
android:id="@+id/loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
that was not what i selected. 那不是我选择的。 Everything is zoomed in, any Help? 一切都放大了,有帮助吗? if anything else needed please tell me to upload it,thanks 如果还有其他需要,请告诉我上传,谢谢
Try adding this 尝试添加这个
android:scaleType="fitCenter"
also perhaps removing layout gravity center. 也可能删除布局重心。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.