ProgressPageIndicator
A filling page Indicator for viewpagers
Install / Use
npx skills add siriscac/ProgressPageIndicatorInstalls into whichever agent you are using.
README
ProgressPageIndicator
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,
compile 'com.siriscac:progresspageindicator:1.1.0' -
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);
#Customization
There are five attributes which are applicable to ProgressPageIndicator.
-
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
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
- Muthuramakrishnan - siriscac@gmail.com
#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
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.7kCommit, push, and open a PR
