我有一個帶有進度條的dummylaylayView。android-在加載主佈局之前加載進度條佈局
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/progressbar">
<ProgressBar
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:id="@+id/progressBar" />
</RelativeLayout>
當我的應用程序啓動時,我需要這個RelativelayoutView出現5秒鐘,並應該有或沒有動畫。
[使用Glide庫完成圖像加載完成後設置進度條的可見性]的可能的副本(http://stackoverflow.com/questions/26054420/set-visibility-of-progress-bar-gone-on-completion -of-image-loading-using-glide-l) –