DilatingDotsProgressBar - 一個自定義的圓點交替擴大效果的進度條

DilatingDotsProgressBar

Android Arsenal

Installation

Coming soon to maven central

Usage

<com.zl.reik.dilatingdotsprogressbar.DilatingDotsProgressBar
            android:id="@+id/progress"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:radius="5dp"
            android:color="#8C2323"
            app:dd_numDots="3"
            app:dd_scaleMultiplier="1.5"
            app:dd_animationDuration="500"
            app:dd_horizontalSpacing="4dp"
            />
  mDilatingDotsProgressBar = (DilatingDotsProgressBar) findViewById(R.id.progress);

// show progress bar and start animating mDilatingDotsProgressBar.showNow();

// stop animation and hide mDilatingDotsProgressBar.hideNow();</pre>

Field Customization

</tr>

</thead>

</tr>

</tbody> </table>

Credit

Thanks to Alessandro Crugnola for his contributions.

項目地址: https://github.com/JustZak/DilatingDotsProgressBar

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
name formatdescription
android:radius dimensionset the radius of each dot
android:color int set the color of each dot
dd_numDots integer set number of dots
dd_scaleMultiplier float set the maximum size the dot will expand to. (scaleMultiplier x radius)
dd_animationDuration int set the length of a single dot's full animation (in milliseconds)
dd_horizontalSpacing dimension set the number of dp between each dot
  • sesese色