小编Ere*_*aut的帖子

应用程序启动后 Imageview 可见 3 秒

我正在制作一个带有网络视图的应用程序。这个 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)

android webview imageview

2
推荐指数
1
解决办法
2026
查看次数

标签 统计

android ×1

imageview ×1

webview ×1