Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

shenghaiyang/ViewPagerIndicator

Repository files navigation

Indicator

Android ViewPager Indicator

Usage

gradle:

compile 'shenghaiyang:indicator:1.1.0'

xml中:

<shenghaiyang.indicator.CircleChangeIndicator
    android:id="@+id/indicator"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal|bottom"
    android:layout_marginBottom="48dp"
    app:normalSolidColor="#00000000"
    app:normalSolidRadius="4dp"
    app:normalStrokeColor="#ffffff"
    app:normalStrokeWidth="1dp"
    app:orientation="horizontal"
    app:selectedSolidColor="#ffffff"
    app:selectedSolidRadius="4dp"
    app:selectedStrokeColor="#ffffff"
    app:selectedStrokeWidth="1dp"
    app:spacing="5dp" />
<shenghaiyang.indicator.LineChangeIndicator
    android:id="@+id/lineIndicator"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal|bottom"
    android:layout_marginBottom="30dp"
    app:lineHeight="3dp"
    app:lineWidth="16dp"
    app:normalColor="#FFFFFF"
    app:orientation="horizontal"
    app:selectedColor="#4285f4"
    app:spacing="10dp" />

java中:

indicator.setupWithViewPager(viewPager);

License

Copyright 2016 shenghaiyang.

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

Android ViewPager Indicator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages