FoldingTabBar.Android
folding tabbar menu for Android. This is a menu library.You can easily add a nice animated tab menu to your app.
Inspired by this project on Dribbble
Simple Apk
Screenshot
How to use (??MainActivity)
Maven
<dependency>
<groupId>com.github.tosslife</groupId>
<artifactId>foldingtabbar</artifactId>
<version>1.0.0</version>
<type>aar</type>
</dependency>
Gradle
add in build.gradle:
//Wait bintray audit ...
compile 'com.github.tosslife:foldingtabbar:1.0.0'
Xml
After adding the gradle dependencies from above you can go to your xml layout and add the following code for a TabBarView:
<com.srx.widget.TabBarView
android:id="@+id/tabBarView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
Java
To set some basic settings use the following java-code:
//??TabBarView
TabBarView tabBarView = (TabBarView) findViewById(R.id.tabBarView);
//???????
tabBarView.setMainBitmap(R.drawable.icon_main);
//?????????????????
tabBarView.bindBtnsForPage(0, R.drawable.icon_menu, R.drawable.icon_left, R.drawable.icon_right);
//????????
tabBarView.initializePage(0);
//????
tabBarView.setOnTabBarClickListener(onTabBarClickListener);
//????
private OnTabBarClickListener onTabBarClickListener = new OnTabBarClickListener() {
@Override
public void onMainBtnsClick(int position, int[] clickLocation) {
//????
}
@Override
public void onMainBtnsClick(int position) {
//????
}
@Override
public void onLeftBtnClick(int page) {
//???????????
}
@Override
public void onRightBtnClick(int page) {
//???????????
}
}
;
//