我正在制作一个带有网络视图的应用程序。这个 webview 需要一些时间来加载 url,所以我希望 Imageview 在消失之前显示大约 3 秒。这是我的布局文件。应用程序启动后 3 秒后,如何交换这两个视图的可见性?
<ImageView android:id="@+id/imageLoading1"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:visibility="visible"
android:src="@drawable/logo"
/>
<android.webkit.WebView
android:id="@+id/wvwMain"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
>
Run Code Online (Sandbox Code Playgroud)