SkillAgentSearch skills...

ProgressPageIndicator

A filling page Indicator for viewpagers

Install / Use

npx skills add siriscac/ProgressPageIndicator

Installs into whichever agent you are using.

About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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" />
  1. 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.

  • strokeRadius Radius of the stroke

  • dotGap Space between the indicators

  • strokeColor Color of the Stroke

  • fillColor Color of the Fill

  • radius Radius of the indicator

  • You can also set these attributes from your java code by calling setStrokeColor(strokeColor), setFillColor(fillColor), setRadius(Radius), setStrokeRadius(strokeRadius), setDotGap(dotGap) respectively.

#Compatibility

  • Android Honeycomb 3.0+

#Changelog

Version: 1.1

  • Fix NPE on setting Empty Adapters

Version: 1.0

  • Initial Build

#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.

Related Skills

View on GitHub
GitHub Stars49
CategoryDevelopment
Updated1y ago
Forks16

Languages

Java

Security Score

65/100

Audited on Sep 17, 2024

No findings