• Stars
    star
    251
  • Rank 161,862 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated over 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android - A ViewPager page indicator that displays the current page number and (optionally) the page count

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

Example Image

Try out the sample application:

Android app on Google Play

Or browse the source code of the sample application 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.

<dependency>
    <groupId>com.github.manuelpeinado.numericpageindicator</groupId>
    <artifactId>library</artifactId>
    <version>1.1.1</version>
    <type>apklib</type>
</dependency>

Usage

Add a <com.manuelpeinado.numericpageindicator.NumericPageIndicator> 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 - [email protected]

Follow me on Twitter Follow me on Twitter Follow me on Twitter

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

More Repositories

1

FadingActionBar

Android library implementing a fading effect for the action bar, similar to the one found in the Play Music app
Java
2,871
star
2

GlassActionBar

Android - a library that adds a glass-like effect to the action bar.
Java
1,215
star
3

MultiChoiceAdapter

Android - A ListView adapter with support for multiple choice modal selection
Java
848
star
4

RefreshActionItem

Android - An action bar item which acts both as a refresh button and as a progress indicator
Java
650
star
5

ImageLayout

Android - A layout that arranges its children in relation to a background image
Java
422
star
6

QuickReturnHeader

A ListView/ScrollView header that hides when scrolling down and reappears immediately when scrolling up, regardless of how far down the list we've gone. Like the one from the Google Keep app.
Java
377
star
7

FadingActionBar-Native

Android - A version of FadingActionBar that works with the native action bar.
Java
74
star
8

RefreshActionItem-Native

Android - A version of RefreshActionItem that works with the native action bar
Java
57
star
9

GoogleDirectionsClient

An Android client for the Google Directions API
Java
18
star
10

Android-Links

A bunch of links to Android libraries and other useful resources (blog posts, tutorials, etc.)
14
star
11

TwelveRules

Android - a library that makes it easier and safe to work with SQLite databases
Java
11
star
12

LocationService

Android library that simplifies working with the new fused location provider
Java
10
star
13

GeocodingTask

Classes to perform direct and reverse geocoding tasks in the background
Java
9
star
14

AddressFragment

Java
9
star
15

MinionAndroidHttp

An Asynchronous OkHttp Library for Android
Java
6
star
16

EasyFacebookConnect

Easy integration with Facebook for User authenticate purpose, in Android
Java
6
star
17

NumQuest

Java
1
star