Skip to content

andyxialm/UltraIndicator

Repository files navigation

#UltraIndicator

A custom indicator for ViewPager. Just adapt to six pages.

Usage

Edit your layout XML:
<cn.refactor.ultraindicator.lib.UltraIndicatorView
        xmlns:uiv="http://schemas.android.com/apk/res-auto"
        android:id="@+id/ultra_indicator_view"
        android:layout_width="40dp"
        android:layout_height="40dp"
        uiv:checkedColor="@color/colorAccent"
        uiv:uncheckedColor="@color/colorPrimary"
        uiv:duration="300"/>
Java Code:
ultraIndicatorView.setupWithViewPager(viewPager);
Or
ultraIndicatorView.setCheckedPosition(position);

License

Copyright 2016 andy

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.

About

A custom indicator for ViewPager.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages