如何更改初始屏幕中图像的大小? [英] How to change the size of image in splash screen?

查看:68
本文介绍了如何更改初始屏幕中图像的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我有一个带有图像和背景色的初始屏幕,但是图像渲染很小,如何更改它?

I have a problem, I had a splash screen with an image and a background color but the image rendering is tiny, how can I change it?

这是我的launch_background.xml:

This is my launch_background.xml:

<?xml version="1.0" encoding="utf-8"?>

<item>
    <bitmap android:gravity="center" android:src="@drawable/splash" />
</item>

如果您知道在Android和IOS上使用的软件包或解决方案,那将是完美的选择.

If you know a package or a way to solve it on Android and IOS it will be perfect.

推荐答案

我遇到了同样的问题,但这是我所做的.

I had the same issue but here is what I did.

我更改了中心"值以填充"

I changed the "center" value to "fill"

那是

<item>
    <bitmap android:gravity="fill" android:src="@drawable/splash" />
</item>

这篇关于如何更改初始屏幕中图像的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆