久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用“動畫圈"在加載內(nèi)容時在 ImageView 中

Using the quot;animated circlequot; in an ImageView while loading stuff(使用“動畫圈在加載內(nèi)容時在 ImageView 中)
本文介紹了使用“動畫圈"在加載內(nèi)容時在 ImageView 中的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我目前在我的應(yīng)用程序中使用可能需要一秒鐘才能顯示的列表視圖.

I am currently using in my application a listview that need maybe one second to be displayed.

我目前所做的是使用列表視圖的@id/android:empty 屬性來創(chuàng)建加載"文本.

What I currently do is using the @id/android:empty property of the listview to create a "loading" text.

 <TextView android:id="@id/android:empty"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           android:background="#FF0000"
           android:text="Loading..."/>

現(xiàn)在,我想用加載對話框中使用的動畫圓圈代替這段文字,我想你們都知道我的意思:

Now, I would like to replace that with the animated circle that is used in a loading dialog instead of this text, i guess you all know what I mean:

我不想要對話.我想在我的布局中展示它.

I do not want a dialog. I want to show that inside my layout.

非常感謝您的幫助!

推薦答案

只需將此塊 xml 放入您的活動布局文件中即可:

Simply put this block of xml in your activity layout file:

<RelativeLayout
    android:id="@+id/loadingPanel"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center" >

    <ProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:indeterminate="true" />
</RelativeLayout>

當你完成加載時,調(diào)用這一行:

And when you finish loading, call this one line:

findViewById(R.id.loadingPanel).setVisibility(View.GONE);

結(jié)果(它也會旋轉(zhuǎn)):

這篇關(guān)于使用“動畫圈"在加載內(nèi)容時在 ImageView 中的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

EditText: Disable Paste/Replace menu pop-up on Text Selection Handler click event(EditText:禁用文本選擇處理程序單擊事件上的粘貼/替換菜單彈出)
Multiline EditText with Done SoftInput Action Label on 2.3(2.3 上帶有完成 SoftInput 操作標簽的多行 EditText)
How to detect the swipe left or Right in Android?(如何在 Android 中檢測向左或向右滑動?)
Prevent dialog dismissal on screen rotation in Android(防止在Android中的屏幕旋轉(zhuǎn)對話框解除)
How do I handle ImeOptions#39; done button click?(如何處理 ImeOptions 的完成按鈕點擊?)
How do you set EditText to only accept numeric values in Android?(您如何將 EditText 設(shè)置為僅接受 Android 中的數(shù)值?)
主站蜘蛛池模板: 国产传媒在线观看 | 日韩av看片| 91精品国产一区二区三区 | 日韩精品中文字幕一区二区三区 | 国产精品黄色 | 一区二区片| 成人福利网站 | 天堂视频中文在线 | 国产日韩精品一区 | 天天插天天操 | 日韩免费三级 | caoporn国产精品免费公开 | 精品1区2区3区 | 天天看夜夜 | 亚洲欧美网| 久久国产综合 | 精品国产不卡一区二区三区 | 婷婷久久精品一区二区 | 日韩超碰| 欧美激情精品久久久久久变态 | 国产一区久久 | 欧美一级淫片免费视频黄 | 久久黄色网 | 国产高清在线观看 | 天堂免费| 狠狠综合久久av一区二区老牛 | cao视频 | 日韩精品视频在线播放 | 欧美在线天堂 | 91久久电影 | 亚洲顶级毛片 | 欧美专区在线 | 中文字幕日韩一区 | 欧美最猛性xxxxx亚洲精品 | 国产精品久久久久久吹潮 | 久久精品国产亚洲一区二区三区 | 日本不卡一区 | 性一交一乱一透一a级 | 国产精品无 | 国产精品久久久久久久久久久久冷 | 亚洲九九 |