AlphaTabsIndicator
1.0.0
대부분의 하단 상태 표시줄 응용 프로그램 요구 사항에 대해 경량 라이브러리의 상태 표시줄 하단에 높은 모방 마이크로블로깅이 있습니다.
탭 라벨 하단의 WeChat 모방, 색상 그라데이션 슬라이드, 각도 표시 기능 증가, 매우 간단한 코드 사용, 단 두 줄의 코드 사용.
查看中文档
데모 다운로드
dependencies {
compile 'com.yinglan.alphatabs:library:1.0.8'
}
<com.yinglan.alphatabs.AlphaTabsIndicator
android:id="@+id/alphaIndicator"
android:layout_width="match_parent"
android:layout_height="55dp"
android:orientation="horizontal">
<com.yinglan.alphatabs.AlphaTabView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:padding="5dp"
app:tabIconNormal=""
app:tabIconSelected=""
app:tabText=""
app:tabTextSize=""
app:textColorNormal=""
app:textColorSelected=""
app:badgeBackgroundColor=""
app:paddingTexwithIcon=""/>
<com.yinglan.alphatabs.AlphaTabView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:padding="5dp"
app:tabIconNormal=""
app:tabIconSelected=""
app:tabText=""
app:tabTextSize=""
app:textColorNormal=""
app:textColorSelected=""
app:badgeBackgroundColor=""
app:paddingTexwithIcon=""/>
、、、、
、、、、
</com.yinglan.alphatabs.AlphaTabsIndicator> //模式
매개변수 | 의미 |
---|---|
탭아이콘일반 | 선택되지 않은 아이콘 |
탭아이콘선택됨 | 이미 선택된 아이콘 |
탭텍스트 | 탭 태그 텍스트 |
탭텍스트크기 | 탭 라벨의 크기 |
텍스트색상일반 | 선택되지 않은 텍스트 색상 |
텍스트색상선택됨 | 선택한 텍스트 색상 |
배지배경색 | 모서리 배경색, 기본 빨간색 |
paddingTexwith아이콘 | 아이콘과 텍스트 사이의 거리 |
mAlphaTabView.showNumber(int i); //Display digital remind
mAlphaTabView.showPoint(); //Show little red dot
mAlphaTabView.removeShow(); //Remove the digital remind
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
라이브러리는 Mr jeasonlzy의 허가 하에 있으며 그의 AlphaIndicatorView를 기반으로 사용성 개선을 수행하고 있습니다. 감사합니다. 이제 계속해서 소스를 오픈하세요.