我有一个图像,这是相当大的溅屏。我想缩小这个图像的大小,但不能这样做。我已经阅读了这个问题的答案,但这些答案都没有帮助。请帮帮忙。
launch_background.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<item>
<bitmap
android:gravity="center"
android:src="@drawable/bluetoothicon"
android:width="100dp"
android:height="100dp" />
</item>
</layer-list>
喷溅屏
蓝牙图像
发布于 2022-02-22 07:08:28
试试这段代码。
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<item
android:width="200dp"
android:height="200dp"
android:gravity="center">
<bitmap android:src="@drawable/bluetoothicon" />
</item>
</layer-list>输出

https://stackoverflow.com/questions/71216448
复制相似问题