我正在开发一个Android应用程序.在我的例子中,当应用程序启动时,它会显示一个临时屏幕,而AsyncTask会在后台获取数据.此临时屏幕仅包含背景图像(20 KB).但在这种背景下需要一段时间来加载.因此,当我启动我的应用程序时,我只看到一个白色的屏幕,一段时间后它会显示背景图像.关于如何摆脱这个问题并从头开始显示背景图像的任何想法这是开始屏幕的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:background="@drawable/start"
android:orientation="vertical" >
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
谢谢
android ×1