Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ManuelPeinado/NumericPageIndicator
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count
https://github.com/ManuelPeinado/NumericPageIndicator
Last synced: about 6 hours ago
JSON representation
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count
- Host: GitHub
- URL: https://github.com/ManuelPeinado/NumericPageIndicator
- Owner: ManuelPeinado
- License: apache-2.0
- Created: 2013-04-05T07:03:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-06T06:51:19.000Z (over 11 years ago)
- Last Synced: 2024-11-14T11:34:36.598Z (6 days ago)
- Language: Java
- Homepage:
- Size: 2.76 MB
- Stars: 251
- Watchers: 19
- Forks: 50
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-android-ui - https://github.com/ManuelPeinado/NumericPageIndicator
README
NumericPageIndicator
====================A ViewPager page indicator that displays the current page number and (optionally) the page count. It can also display buttons to go to adjacent pages, and to move to the start and end pages.
Integrates seamlessly with Jake Wharton's [ViewPagerIndicator][1] library.
![Example Image][2]
Try out the sample application:
Or browse the [source code of the sample application][3] for a complete example of use.
Including in your project
-------------------------If you’re using the Eclipse ADT plugin you can include NumericPageIndicator as a library project. Create a new Android project using the library/ folder as the existing source. Then, open the properties of this new project and, in the 'Android' category, add a reference to the ViewPagerIndicator library project. Finally, in your application project properties, add a reference to the created library project.
If you use maven to build your Android project you can simply add a dependency for this library.
```xml
com.github.manuelpeinado.numericpageindicator
library
1.1.1
apklib```
Usage
-----Add a element to your XML layout and attach it to your ViewPager in your Java code just like you would with any of the built-in ViewPagerIndicator classes.
See the accompanying sample application for a complete example.
Customization
-------------You can customize the look of the indicators in any of the following ways:
1. **Theme XML**. Define a numericPageIndicatorStyle attribute in your theme and make it reference a custom style where you can customize any of the multiple attributes supported by the library.
2. **Layout XML**. Include any of the attributes supported by the library directly in your NumericPageIndicator element.
3. **Object methods**. Use the getters and setters methods provided by the library from your Java code.The sample application includes one activity to illustrate each of these methods.
Who's using it
--------------
*Does your app use NumericPageIndicator? If you want to be featured on this list drop me a line.*Developed By
--------------------Manuel Peinado Gallego -
License
-------Copyright 2013 Manuel Peinado
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 athttp://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.
[1]: http://viewpagerindicator.com
[2]: https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/readme_pic.png
[3]: https://github.com/ManuelPeinado/NumericPageIndicator/tree/master/sample