A native library for Android that provides a filling Page Indicator for viewpagers
For a working implementation, Have a look at the Sample Project - app module
Include the library as local library project or get it from jCenter().
add in your dependencies,
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" />
- Refer the widget from the layout and set the viewpager to it by using setViewPager().
pagerIndicator = (ProgressPageIndicator) findViewById(R.id.dotsL); pagerIndicator.setViewPager(viewPager);
There are five attributes which are applicable to
strokeRadiusRadius of the stroke
dotGapSpace between the indicators
strokeColorColor of the Stroke
fillColorColor of the Fill
radiusRadius of the indicator
You can also set these attributes from your java code by calling
- Android Honeycomb 3.0+
- Fix NPE on setting Empty Adapters
- Initial Build
- Muthuramakrishnan - firstname.lastname@example.org
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.