A lightweight viewpager indicator like in nexus 5 launcher
All the credits goes to the original repository
Since two MR affecting the performance of an app have been rejected this fork have moved to his own direction.
Please consider using the original library
version 1.1.8 (minSdkVersion="11"
)
allprojects {
repositories {
mavenCentral()
maven {
url 'https://github.com/netcosports/maven/raw/master/'
}
}
}
dependencies {
compile 'com.netcosports:circleindicator:1.1.8@aar'
}
<com.netcosports.circleindicator.CircleIndicator
android:layout_width="fill_parent"
android:layout_height="40dp"/>
CircleIndicator circleIndicator = (CircleIndicator) findViewById(R.id.vp_indicator);
circleIndicator.setViewPager(viewPager);
#####Properties:
app:ci_width
app:ci_height
app:ci_margin
app:ci_drawable
app:ci_drawable_unselected
app:ci_animator
app:ci_animator_reverse
app:ci_animator_insert
app:ci_animator_remove
- support multiple insertion and deletion at the same time.
- indicate that indicator hasn't overlapping rendering in order to remove performance issues.
- support insertion and deletion
- Fix bug (#22)
- Fix bug (#17)
- SetOnPageChangeListener is deprecated, Please use ViewPager addOnPageChangeListener (v4 support lirbray revision 22.2.0)
minSdkVersion="11"
- Fix bug (#12)
- Fix default animator
- Add a property :
ci_animator_reverse
- Remove NineOldAndroids dependency
minSdkVersion="14"
- Initial release. (
minSdkVersion="8"
)
Copyright (C) 2014 relex
Copyright (C) 2015 Netcosports
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.