Skip to content
An android process bar library associated with ViewPager through single method
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper First Commit Aug 21, 2016
media
processbar Remove redundant dependencies Aug 22, 2016
.gitignore First Commit Aug 21, 2016
README.md Update README.md Aug 22, 2016
READMEcn.md Update README.md Aug 22, 2016
build.gradle upgrade buildToolsVersion, compileSdkVersion, targetSdkVersion, suppo… Feb 13, 2017
gradle.properties First Commit Aug 21, 2016
gradlew
gradlew.bat First Commit Aug 21, 2016
settings.gradle First Commit Aug 21, 2016

README.md

Process Bar

中文看这里

Download

Add it in your build.gradle at the end of repositories:

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

Add the dependency in the form:

dependencies {
    compile 'com.github.hzw1199:android_ProcessBar:v1.1'
}

Usage

  • work with ViewPager
processBar.setupWithViewPager(viewPager);
  • support xml attributes
<declare-styleable name="ProcessBar">
   <attr name="processbar_titles" format="reference"></attr>
   <attr name="processbar_background" format="integer"></attr>
   <attr name="processbar_selected_color" format="color"></attr>
   <attr name="processbar_current_drawable" format="integer"></attr>
   <attr name="processbar_selected_text_size" format="dimension"></attr>
   <attr name="processbar_unselected_text_size" format="dimension"></attr>
</declare-styleable>

Example:

<com.adam.processbar.ProcessBar
   android:id="@+id/processbar"
   android:layout_width="match_parent"
   android:layout_height="48dp"
   app:processbar_titles="@array/process_bar_elements"
   app:processbar_background="@drawable/shape_plan_tab_background"
   app:processbar_selected_color="@color/processColor"
   app:processbar_current_drawable="@drawable/plan_arrow"
   app:processbar_selected_text_size="14sp"
   app:processbar_unselected_text_size="14sp"/>
  • If this project helps you, please star me.
You can’t perform that action at this time.