<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Progress ,讓等待更優(yōu)雅

          共 1214字,需瀏覽 3分鐘

           ·

          2022-05-23 20:57

          引語

          加載頁面請(qǐng)求網(wǎng)絡(luò)會(huì)需要點(diǎn)時(shí)間,一般會(huì)加個(gè) Progress,想 2012 年那會(huì)的做法是請(qǐng)求網(wǎng)絡(luò)時(shí)顯示一個(gè)文本“加載中”,有數(shù)據(jù)了,再隱藏這個(gè)文本,不得不說簡(jiǎn)陋也達(dá)到了效果。后面使用了 ProgressBar,屬性設(shè)置成圓形進(jìn)度條,再后面 Google 出了 SwipeRefreshLayout,都是默認(rèn)使用這個(gè)了,效果也不錯(cuò)。

          以上能滿足一些常見場(chǎng)景,但還有比如下載是等待,加載圖片、播放音樂進(jìn)度條等較為復(fù)雜場(chǎng)景不太好用 SwipeRefreshLayout,如何讓等待更優(yōu)雅?今天推薦幾個(gè)優(yōu)秀的 Progress 開源庫,讓用戶使用體驗(yàn)更佳。

          帶數(shù)字的進(jìn)度條

          1.DownloadProgressBar

          帶有酷炫動(dòng)畫的 Android 進(jìn)度條。

          效果預(yù)覽

          GitHub 地址

          https://github.com/panwrona/DownloadProgressBar

          2.NumberProgressBar

          代碼家作品,帶數(shù)字的進(jìn)度條。

          效果預(yù)覽

          GitHub 地址

          https://github.com/daimajia/NumberProgressBar

          帶動(dòng)畫的進(jìn)度條

          1.LoadingView

          簡(jiǎn)單的帶有動(dòng)畫效果的加載控件。

          效果預(yù)覽

          GitHub 地址

          https://github.com/ldoublem/LoadingView

          2.LoadingDrawable

          一些漂亮的 android 加載 drawable,可以與任何視圖組合為 LoadingView 或 ProgressBar。此外,一些 Drawable 也可以自定義加載進(jìn)度。

          效果預(yù)覽

          GitHub 地址

          https://github.com/dinuscxj/LoadingDrawable

          圓形進(jìn)度條

          1.RoundCornerProgressBar

          彩色進(jìn)度條,進(jìn)度圓角,您可以自定義顏色和角半徑。

          效果預(yù)覽

          GitHub 地址

          https://github.com/akexorcist/RoundCornerProgressBar

          2.CircularProgressBar

          這是一個(gè)允許以最簡(jiǎn)單的方式實(shí)現(xiàn)圓形 ProgressBar 的 Android 項(xiàng)目。

          效果預(yù)覽

          GitHub 地址

          https://github.com/lopspower/CircularProgressBar

          加載圖片進(jìn)度條

          效果預(yù)覽

          GitHub 地址

          https://github.com/mrwonderman/android-square-progressbar

          播放音樂進(jìn)度條

          這個(gè)圓形進(jìn)度條是為需要漂亮音樂進(jìn)度條的音樂播放器設(shè)計(jì)和制造的。

          效果預(yù)覽

          GitHub 地址

          https://github.com/aliab/circular-music-progressbar

          系列文章

          ImageView,哪個(gè) APP 沒有圖片?

          EditText,爆 bug 的重災(zāi)區(qū)

          瀏覽 64
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  高清无码免费视频在线 | 人人色人人摸 | 俺去也亚洲 | 日韩欧美一本 | 大鸡吧插逼视频 |