Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yinglannull/alphatabsindicator
高仿微信底部状态栏的轻量级库,非MagicIndicator那么功能庞大,简化功能符合大多数BottomTabBar应用设计需求, Lightweight Library of high imitation WeChat bottom status bar
https://github.com/yinglannull/alphatabsindicator
bottombar indicator wechat
Last synced: about 11 hours ago
JSON representation
高仿微信底部状态栏的轻量级库,非MagicIndicator那么功能庞大,简化功能符合大多数BottomTabBar应用设计需求, Lightweight Library of high imitation WeChat bottom status bar
- Host: GitHub
- URL: https://github.com/yinglannull/alphatabsindicator
- Owner: yingLanNull
- Created: 2016-10-27T07:37:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-25T05:30:10.000Z (about 6 years ago)
- Last Synced: 2025-01-08T13:09:50.552Z (about 11 hours ago)
- Topics: bottombar, indicator, wechat
- Language: Java
- Homepage:
- Size: 4.5 MB
- Stars: 1,079
- Watchers: 23
- Forks: 220
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AlphaTabsIndicator
High imitation microblogging at the bottom of the status bar of the lightweight library for most of the bottom status bar application requirements.
## Abstract
Imitation WeChat at the bottom of the tab label, slide the color gradient, increase the angle mark function, the use of extremely simple, only two lines of code.## Chinese Documents
[查看中文文档](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/READEME_CN.md)## Gif
![1](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/show/show.gif)## Screenshot
![1](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/show/Screenshot1.png)
![2](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/show/Screenshot2.png)
![3](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/show/Screenshot3.png)
![4](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/show/Screenshot4.png)## Demo
[Download Demo](https://github.com/yingLanNull/AlphaTabsIndicator/blob/master/show/app-debug.apk)## Usage
### Step 1
#### Gradle
```
dependencies {
compile 'com.yinglan.alphatabs:library:1.0.8'
}
```### Step 2
#### In Layout
```
、、、、
、、、、//模式
```
#### Function and parameter definition
Parameters
Meaning
tabIconNormal
Unselected icon
tabIconSelected
Already selected icon
tabText
Tab tag text
tabTextSize
Tab The size of the label
textColorNormal
Unchecked text color
textColorSelected
Selected text color
badgeBackgroundColor
Corner background color, default red
paddingTexwithIcon
The distance between the icon and text
#### In Code
##### AlphaTabView Main Method
```
mAlphaTabView.showNumber(int i); //Display digital remind
mAlphaTabView.showPoint(); //Show little red dot
mAlphaTabView.removeShow(); //Remove the digital remind
```##### AlphaTabsIndicator Main Method
```
mAlphaTabsIndicator.setViewPager(ViewPager mViewPger); //Set ViewPager
mAlphaTabsIndicator.setOnTabChangedListner(OnTabChangedListner listner); //Settings TAB at the bottom click to monitor
mAlphaTabsIndicator.removeAllBadge(); //Remove all remind the TAB
mAlphaTabsIndicator.setTabCurrenItem(int tabIndex); //Settings TAB option
```#### Instructions
The library is in the permission of the Mr [jeasonlzy](https://github.com/jeasonlzy) permission,on the basis of his [AlphaIndicatorView](https://github.com/jeasonlzy/AlphaIndicatorView) do usability improvements, thank you, now continue to open source.
## The main improvement:
1. Increase the Angle of standard, make it more close to WeChat TAB at the bottom;
1. The diagonal mark size for dynamic control, adaptive according to the height of the TAB;
1. Limit the appropriate to reduce to use requirement, can be used in the case of not binding viewpager;
1. When without binding ViewPager Settings TAB option;
1. The distance between the icon and text can be configured, the default is 5;
1. Increase click on the TAB to monitor the callback;
1. Increase in code mViewPager. SetCurrentItem (i) TAB linkage control condition;
1. Repair is not set in a state of not click Tab.