【发布时间】:2016-01-20 20:25:42
【问题描述】:
我想在我的应用中显示一张图片作为背景。现在我使用了这个语句:android:background="@drawable/background" in <LineraLayout>。这是.xml 代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="overbit.user.MainActivity"
android:background="@drawable/background">
</LinearLayout>
现在我得到了这个输出:
但我想要这样:
也许你们中的某个人可以帮助我。谢谢。
【问题讨论】: