Permalink
Browse files

initial

  • Loading branch information...
0 parents commit 47a530009a7115228ed01b63ee0d9e72ce822053 @H07000223 committed Nov 9, 2015
Showing with 3,840 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +34 −0 CHNAGELOG.md
  3. +1 −0 FlycoTabLayout_Lib/.gitignore
  4. +117 −0 FlycoTabLayout_Lib/build.gradle
  5. +17 −0 FlycoTabLayout_Lib/proguard-rules.pro
  6. +11 −0 FlycoTabLayout_Lib/src/main/AndroidManifest.xml
  7. +917 −0 FlycoTabLayout_Lib/src/main/java/com/flyco/tablayout/CommonTabLayout.java
  8. +856 −0 FlycoTabLayout_Lib/src/main/java/com/flyco/tablayout/SlidingTabLayout.java
  9. +12 −0 FlycoTabLayout_Lib/src/main/java/com/flyco/tablayout/listener/CustomTabEntity.java
  10. +6 −0 FlycoTabLayout_Lib/src/main/java/com/flyco/tablayout/listener/OnTabSelectListener.java
  11. +55 −0 FlycoTabLayout_Lib/src/main/java/com/flyco/tablayout/utils/FragmentChangeManager.java
  12. +51 −0 FlycoTabLayout_Lib/src/main/java/com/flyco/tablayout/utils/UnreadMsgUtils.java
  13. +31 −0 FlycoTabLayout_Lib/src/main/res/layout/layout_tab.xml
  14. +45 −0 FlycoTabLayout_Lib/src/main/res/layout/layout_tab_bottom.xml
  15. +44 −0 FlycoTabLayout_Lib/src/main/res/layout/layout_tab_left.xml
  16. +45 −0 FlycoTabLayout_Lib/src/main/res/layout/layout_tab_right.xml
  17. +44 −0 FlycoTabLayout_Lib/src/main/res/layout/layout_tab_top.xml
  18. +164 −0 FlycoTabLayout_Lib/src/main/res/values/attrs.xml
  19. +22 −0 LICENSE
  20. +68 −0 README.md
  21. +67 −0 README_CN.md
  22. +1 −0 app/.gitignore
  23. +30 −0 app/build.gradle
  24. +17 −0 app/proguard-rules.pro
  25. +31 −0 app/src/main/AndroidManifest.xml
  26. +57 −0 app/src/main/java/com/flyco/tablayoutsamples/adapter/SimpleHomeAdapter.java
  27. +30 −0 app/src/main/java/com/flyco/tablayoutsamples/entity/TabEntity.java
  28. +204 −0 app/src/main/java/com/flyco/tablayoutsamples/ui/CommonTabActivity.java
  29. +36 −0 app/src/main/java/com/flyco/tablayoutsamples/ui/SimpleCardFragment.java
  30. +37 −0 app/src/main/java/com/flyco/tablayoutsamples/ui/SimpleHomeActivity.java
  31. +123 −0 app/src/main/java/com/flyco/tablayoutsamples/ui/SlidingTabActivity.java
  32. +49 −0 app/src/main/java/com/flyco/tablayoutsamples/utils/ViewFindUtils.java
  33. BIN app/src/main/res/drawable/background_card.9.png
  34. +129 −0 app/src/main/res/layout/activity_common_tab.xml
  35. +131 −0 app/src/main/res/layout/activity_sliding_tab.xml
  36. +15 −0 app/src/main/res/layout/fr_simple_card.xml
  37. BIN app/src/main/res/mipmap-xhdpi/ic_launcher.png
  38. BIN app/src/main/res/mipmap-xhdpi/tab_contact_select.png
  39. BIN app/src/main/res/mipmap-xhdpi/tab_contact_unselect.png
  40. BIN app/src/main/res/mipmap-xhdpi/tab_home_select.png
  41. BIN app/src/main/res/mipmap-xhdpi/tab_home_unselect.png
  42. BIN app/src/main/res/mipmap-xhdpi/tab_more_select.png
  43. BIN app/src/main/res/mipmap-xhdpi/tab_more_unselect.png
  44. BIN app/src/main/res/mipmap-xhdpi/tab_speech_select.png
  45. BIN app/src/main/res/mipmap-xhdpi/tab_speech_unselect.png
  46. +7 −0 app/src/main/res/values/colors.xml
  47. +3 −0 app/src/main/res/values/strings.xml
  48. +21 −0 app/src/main/res/values/styles.xml
  49. +27 −0 build.gradle
  50. +18 −0 gradle.properties
  51. BIN gradle/wrapper/gradle-wrapper.jar
  52. +6 −0 gradle/wrapper/gradle-wrapper.properties
  53. +164 −0 gradlew
  54. +90 −0 gradlew.bat
  55. BIN preview_1.gif
  56. BIN preview_2.gif
  57. +1 −0 settings.gradle
@@ -0,0 +1,6 @@
+.gradle
+/local.properties
+build
+.idea
+*.iml
+.DS_Store
@@ -0,0 +1,34 @@
+#Change Log
+Version 1.1.2 *(2015-10-14)*
+----------------------------
+* add method setViewPager(ViewPager vp, String[] titles) for the condition that you do not want set titles in page adapter
+
+Version 1.1.4 *(2015-10-16)*
+----------------------------
+* fix bug: indicator not show if you do not call viewpager's setCurrentItem method during initialization.
+
+Version 1.1.6 *(2015-10-18)*
+----------------------------
+* add method setViewPager(ViewPager vp, String[] titles, FragmentActivity fa, ArrayList<Fragment> fragments)
+ for the condition that you even do not want to instantiate page adapter by yourself
+* add listener OnTabSelectedListener
+
+Version 1.1.8 *(2015-10-19)*
+----------------------------
+* add block indicator
+
+Version 1.2.0 *(2015-10-20)*
+----------------------------
+* add unread msg dot (TipView)
+
+Version 1.3.0 *(2015-10-22)*
+----------------------------
+* new added View: CommonTabLayout is a tablayout without dependence of ViewPager
+
+Version 1.3.2 *(2015-10-28)*
+----------------------------
+* extract common attributes
+
+Version 1.3.4 *(2015-11-5)*
+----------------------------
+* replace TipView with RoundTextView
@@ -0,0 +1 @@
+/build
@@ -0,0 +1,117 @@
+apply plugin: 'com.android.library'
+//apply plugin: 'com.github.dcendents.android-maven'
+//apply plugin: 'com.jfrog.bintray'
+
+// 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version
+version = "1.3.4"
+android {
+ compileSdkVersion 23
+ buildToolsVersion "22.0.1"
+
+ defaultConfig {
+ minSdkVersion 8
+ targetSdkVersion 23
+ versionCode 134
+ versionName version
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.android.support:support-v4:23.1.0'
+ compile 'com.nineoldandroids:library:2.4.0'
+ compile 'com.flyco.roundview:FlycoRoundView_Lib:1.0.4@aar'
+}
+
+//def siteUrl = 'https://github.com/H07000223' // 项目的主页
+//def gitUrl = 'https://github.com/H07000223' // Git仓库的url
+//group = "com.flyco.tablayout" // Maven Group ID for the artifact,一般填你唯一的包名
+//install {
+// repositories.mavenInstaller {
+// // This generates POM.xml with proper parameters
+// pom {
+// project {
+// packaging 'aar'
+// // Add your description here
+// name 'Android TabLayout Library' //项目描述
+// url siteUrl
+// // Set your license
+// licenses {
+// license {
+// name 'MIT'
+// url 'http://opensource.org/licenses/MIT'
+// }
+// }
+// developers {
+// developer {
+// id 'H07000223' //填写的一些基本信息
+// name 'H07000223'
+// email '867318349@qq.com'
+// }
+// }
+// scm {
+// connection gitUrl
+// developerConnection gitUrl
+// url siteUrl
+// }
+// }
+// }
+// }
+//}
+//
+//task sourcesJar(type: Jar) {
+// from android.sourceSets.main.java.srcDirs
+// classifier = 'sources'
+//}
+//
+//artifacts {
+// archives sourcesJar
+//}
+//
+//android.libraryVariants.all { variant ->
+// println variant.javaCompile.classpath.files
+// if (variant.name == 'release') { //我们只需 release 的 javadoc
+// task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) {
+// // title = ''
+// // description = ''
+// source = variant.javaCompile.source
+// classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath())
+// options {
+// encoding "utf-8"
+// links "http://docs.oracle.com/javase/7/docs/api/"
+// linksOffline "http://d.android.com/reference", "${android.sdkDirectory}/docs/reference"
+// }
+// exclude '**/BuildConfig.java'
+// exclude '**/R.java'
+// }
+// task("javadoc${variant.name.capitalize()}Jar", type: Jar, dependsOn: "generate${variant.name.capitalize()}Javadoc") {
+// classifier = 'javadoc'
+// from tasks.getByName("generate${variant.name.capitalize()}Javadoc").destinationDir
+// }
+// artifacts {
+// archives tasks.getByName("javadoc${variant.name.capitalize()}Jar")
+// }
+// }
+//}
+//
+//Properties properties = new Properties()
+//properties.load(project.rootProject.file('local.properties').newDataInputStream())
+//bintray {
+// user = properties.getProperty("bintray.user")
+// key = properties.getProperty("bintray.apikey")
+// configurations = ['archives']
+// pkg {
+// repo = "maven"
+// name = "FlycoTabLayout_Lib" //发布到JCenter上的项目名字
+// websiteUrl = siteUrl
+// vcsUrl = gitUrl
+// licenses = ["MIT"]
+// publish = true
+// }
+//}
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/lihui/work/AndroidStudio/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
@@ -0,0 +1,11 @@
+<manifest
+ package="com.flyco.tablayout"
+ xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <application
+ android:allowBackup="true"
+ android:supportsRtl="true">
+
+ </application>
+
+</manifest>
Oops, something went wrong.

0 comments on commit 47a5300

Please sign in to comment.