【发布时间】:2017-04-03 05:33:45
【问题描述】:
我在初始屏幕活动中使用图像作为 LinearLayout 的背景,但它显示不适合屏幕。我不知道如何使用它的属性来拉伸它。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_splash"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.myproject.SplashActivity"
android:orientation="horizontal"
android:background="@drawable/my_image_background">
</LinearLayout>
【问题讨论】:
标签: android android-layout imageview android-xml splash-screen