如何将背景图片添加到 XML 文件?
How do I add a background image to an XML file?
如何在 xml 文件中插入背景图片?我想为我的 APK 添加背景图片(移动设备 phone),我已经找到 xml 文件,但我不知道在哪里插入图片 ID,也不知道android: background 还是 android: icon 谁能帮帮我? XML 在图片中,顺便说一句,我不知道如何复制问题中的 xml 代码
用android:background=""
完成,像这样:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/your_image_id">
</LinearLayout>
如何在 xml 文件中插入背景图片?我想为我的 APK 添加背景图片(移动设备 phone),我已经找到 xml 文件,但我不知道在哪里插入图片 ID,也不知道android: background 还是 android: icon 谁能帮帮我? XML 在图片中,顺便说一句,我不知道如何复制问题中的 xml 代码
用android:background=""
完成,像这样:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/your_image_id">
</LinearLayout>