All Projects → bingoogolapple → BGAIndicator-Android

bingoogolapple / BGAIndicator-Android

Licence: other
滑动指示器

Programming Languages

java
68154 projects - #9 most used programming language

🏃BGAIndicator-Android🏃

License Maven Central

支持Indicator和ViewPager宽度不相等时也能正确运行的滑动指示器

效果图

Image of BGAFixedIndicatorDemo

Gradle依赖

dependencies {
    compile 'com.android.support:support-v4:latestVersion'
    compile 'cn.bingoogolapple:bga-indicator:latestVersion@aar'
}

自定义属性说明

<declare-styleable name="BGAIndicator">
    <attr name="indicator_textColor" format="color|reference" />
    <attr name="indicator_textSizeNormal" format="dimension|reference" />
    <attr name="indicator_textSizeSelected" format="dimension|reference" />
    <attr name="indicator_triangleHorizontalMargin" format="dimension|reference" />
    <attr name="indicator_triangleColor" format="color|reference" />
    <attr name="indicator_triangleHeight" format="dimension|reference" />
    <attr name="indicator_hasDivider" format="boolean" />
    <attr name="indicator_dividerColor" format="color|reference" />
    <attr name="indicator_dividerWidth" format="dimension|reference" />
    <attr name="indicator_dividerVerticalMargin" format="dimension|reference" />
</declare-styleable>

详细用法请查看demo🐾

关于我

新浪微博 个人主页 邮箱 BGA系列开源库QQ群
bingoogolapple bingoogolapple.cn [email protected] BGA_CODE_CLUB

License

Copyright 2015 bingoogolapple

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].