【发布时间】:2014-10-11 18:40:53
【问题描述】:
对不起,我确定这是非常基本的东西。
在我的应用启动到的活动中,我的布局的 XML 如下:
<RelativeLayout 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:background="@drawable/background2x"
android:id="@+id/mainScreen"
tools:context="com.offyear.www.offyear.WelcomeActivity">
我遇到的问题是屏幕没有立即加载到我设置的背景图像。在背景图像和按钮出现之前,它首先加载到空白屏幕大约半秒。当然,这并没有破坏我的应用程序的功能或任何东西,但它很烦人并且看起来很草率。
我需要怎么做才能没有初始空白屏幕?当我的应用启动时,用户首先应该看到的是背景图片和按钮。
感谢并为 Android 101 问题道歉。
【问题讨论】:
-
您可以尝试setting translucent theme 活动,或者您可以将此背景设置为清单中的主题。请参考:stackoverflow.com/questions/14307126/….
标签: android layout background