Skip to content

Commit

Permalink
new added tablayout
Browse files Browse the repository at this point in the history
  • Loading branch information
H07000223 committed Dec 8, 2015
1 parent 046b174 commit 0ca3bd2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions FlycoTabLayout_Lib/build.gradle
Expand Up @@ -3,15 +3,15 @@ apply plugin: 'com.android.library'
//apply plugin: 'com.jfrog.bintray' //apply plugin: 'com.jfrog.bintray'


// 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version // 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version
version = "1.4.0" version = "1.4.2"
android { android {
compileSdkVersion 23 compileSdkVersion 23
buildToolsVersion "22.0.1" buildToolsVersion "22.0.1"


defaultConfig { defaultConfig {
minSdkVersion 8 minSdkVersion 8
targetSdkVersion 23 targetSdkVersion 23
versionCode 140 versionCode 142
versionName version versionName version
} }
buildTypes { buildTypes {
Expand Down
8 changes: 6 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
#FlycoTabLayout #FlycoTabLayout
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FlycoTabLayout-green.svg?style=true)](https://android-arsenal.com/details/1/2756) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FlycoTabLayout-green.svg?style=true)](https://android-arsenal.com/details/1/2756)
####[中文版](https://github.com/H07000223/FlycoTabLayout/blob/master/README_CN.md) ####[中文版](https://github.com/H07000223/FlycoTabLayout/blob/master/README_CN.md)
An Android TabLayout Lib has two kinds of TabLayout at present. An Android TabLayout Lib has 3 kinds of TabLayout at present.


* SlidingTabLayout: deeply modified from [PagerSlidingTabStrip](https://github.com/jpardogo/PagerSlidingTabStrip). * SlidingTabLayout: deeply modified from [PagerSlidingTabStrip](https://github.com/jpardogo/PagerSlidingTabStrip).
* new added attribute * new added attribute
Expand Down Expand Up @@ -29,19 +29,23 @@ can be used freely with other widgets together.
public void setTabData(ArrayList<CustomTabEntity> tabEntitys, FragmentManager fm, int containerViewId, ArrayList<Fragment> fragments) public void setTabData(ArrayList<CustomTabEntity> tabEntitys, FragmentManager fm, int containerViewId, ArrayList<Fragment> fragments)
``` ```


* SegmentTabLayout

##Demo ##Demo
![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_1.gif) ![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_1.gif)


![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_2.gif) ![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_2.gif)


![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_3.gif)

##Gradle ##Gradle


```groovy ```groovy
dependencies{ dependencies{
compile 'com.android.support:support-v4:23.1.1' compile 'com.android.support:support-v4:23.1.1'
compile 'com.nineoldandroids:library:2.4.0' compile 'com.nineoldandroids:library:2.4.0'
compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.2@aar' compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.2@aar'
compile 'com.flyco.tablayout:FlycoTabLayout_Lib:1.4.0@aar' compile 'com.flyco.tablayout:FlycoTabLayout_Lib:1.4.2@aar'
} }
``` ```


Expand Down
7 changes: 5 additions & 2 deletions README_CN.md
@@ -1,7 +1,7 @@
#FlycoTabLayout #FlycoTabLayout
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FlycoTabLayout-green.svg?style=true)](https://android-arsenal.com/details/1/2756) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FlycoTabLayout-green.svg?style=true)](https://android-arsenal.com/details/1/2756)


一个Android TabLayout库,目前有两个TabLayout 一个Android TabLayout库,目前有3个TabLayout


* SlidingTabLayout:参照[PagerSlidingTabStrip](https://github.com/jpardogo/PagerSlidingTabStrip)进行大量修改. * SlidingTabLayout:参照[PagerSlidingTabStrip](https://github.com/jpardogo/PagerSlidingTabStrip)进行大量修改.
* 新增部分属性 * 新增部分属性
Expand All @@ -28,20 +28,23 @@
public void setTabData(ArrayList<CustomTabEntity> tabEntitys, FragmentManager fm, int containerViewId, ArrayList<Fragment> fragments) public void setTabData(ArrayList<CustomTabEntity> tabEntitys, FragmentManager fm, int containerViewId, ArrayList<Fragment> fragments)
``` ```


* SegmentTabLayout


##Demo ##Demo
![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_1.gif) ![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_1.gif)


![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_2.gif) ![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_2.gif)


![](https://github.com/H07000223/FlycoTabLayout/blob/master/preview_3.gif)

##Gradle ##Gradle


```groovy ```groovy
dependencies{ dependencies{
compile 'com.android.support:support-v4:23.1.1' compile 'com.android.support:support-v4:23.1.1'
compile 'com.nineoldandroids:library:2.4.0' compile 'com.nineoldandroids:library:2.4.0'
compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.2@aar' compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.2@aar'
compile 'com.flyco.tablayout:FlycoTabLayout_Lib:1.4.0@aar' compile 'com.flyco.tablayout:FlycoTabLayout_Lib:1.4.2@aar'
} }
``` ```


Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Expand Up @@ -22,9 +22,9 @@ android {
dependencies { dependencies {
compile fileTree(dir: 'libs', include: ['*.jar']) compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:appcompat-v7:23.1.1'
compile project(':FlycoTabLayout_Lib') // compile project(':FlycoTabLayout_Lib')


/* compile 'com.flyco.tablayout:FlycoTabLayout_Lib:1.4.0@aar' compile 'com.flyco.tablayout:FlycoTabLayout_Lib:1.4.2@aar'
compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.2@aar' compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.2@aar'
compile 'com.nineoldandroids:library:2.4.0'*/ compile 'com.nineoldandroids:library:2.4.0'
} }
Binary file added preview_3.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0ca3bd2

Please sign in to comment.