siriscac / ProgressPageIndicator

A filling page Indicator for viewpagers
49 stars 16 forks source link
android android-library android-ui viewpager widget

Download Android Arsenal

ProgressPageIndicator

A native library for Android that provides a filling Page Indicator for viewpagers

Sample Screenshot

For a working implementation, Have a look at the Sample Project - app module

  1. Include the library as local library project or get it from jCenter().

    add in your dependencies,

    compile 'com.siriscac:progresspageindicator:1.1.0'
  2. Include the ProgressPageIndicator widget in your layout.

    <com.cepheuen.progresspageindicator.ProgressPageIndicator
        android:id="@+id/pageIndicator"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:dotGap="2dp"
        app:fillColor="#cccccc"
        app:radius="8dp" />
  3. Refer the widget from the layout and set the viewpager to it by using setViewPager().

    pagerIndicator = (ProgressPageIndicator) findViewById(R.id.dotsL);
    pagerIndicator.setViewPager(viewPager);

Customization

There are five attributes which are applicable to ProgressPageIndicator.

Compatibility

Changelog

Version: 1.1

Version: 1.0

Author

License

Copyright 2015 Muthuramakrishnan

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.