Android水滴效果的滑動切換頁面:SpringIndicator
該項目實現了水滴效果的滑動切換頁面功能,水滴的實現類似于Path2.0的下拉刷新時水滴落下的效果。
用法
添加依賴至你的build.gradle.
dependencies {
compile 'com.github.chenupt.android:springindicator:1.0.1@aar'
} 添加indicator至你的布局
<github.chenupt.springindicator.SpringIndicator
xmlns:app="http://schemas.android.com/apk/res-auto"
app:siTextSize="18sp"
app:siIndicatorColors="@array/indicator_colors"
app:siTextColor="@color/colorPrimaryDark"
app:siSelectedTextColor="@android:color/white"
app:siIndicatorColor="@color/colorPrimary"
android:id="@+id/indicator"
android:layout_width="match_parent"
android:layout_height="56dp"/>Setup with your viewPager.
springIndicator.setViewPager(viewPager);
本文由用戶 y37f 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!