Skip to content

Repository files navigation

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-styleablename="ProcessBar">
<attrname="processbar_titles"format="reference"></attr>
<attrname="processbar_background"format="integer"></attr>
<attrname="processbar_selected_color"format="color"></attr>
<attrname="processbar_current_drawable"format="integer"></attr>
<attrname="processbar_selected_text_size"format="dimension"></attr>
<attrname="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.

About

An android process bar library associated with ViewPager through single method

Resources

Stars

188 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages