diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.gitignore" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.gitignore" deleted file mode 100644 index afbdab33e9e7967dafb71706fc99996cf4732d8e..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.gitignore" +++ /dev/null @@ -1,6 +0,0 @@ -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries -.DS_Store -/build diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/.name" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/.name" deleted file mode 100644 index d73e2fa3542fe2a9b22b711c3fe658e6269636cb..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/.name" +++ /dev/null @@ -1 +0,0 @@ -IndicatorTabBar \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/compiler.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/compiler.xml" deleted file mode 100644 index 217af471a9e60576e8c36373fa22c50a63a00b2c..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/compiler.xml" +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/copyright/profiles_settings.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/copyright/profiles_settings.xml" deleted file mode 100644 index e7bedf3377d40335424fd605124d4761390218bb..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/copyright/profiles_settings.xml" +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/encodings.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/encodings.xml" deleted file mode 100644 index e206d70d8595e2a50675ba11de48efcfa012497d..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/encodings.xml" +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/gradle.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/gradle.xml" deleted file mode 100644 index 03cacade302cccee330140fecdba88a88b4b7037..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/gradle.xml" +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/inspectionProfiles/Project_Default.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/inspectionProfiles/Project_Default.xml" deleted file mode 100644 index afa04c37b27452e34f5543519e9bc0d8f5a87dde..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/inspectionProfiles/Project_Default.xml" +++ /dev/null @@ -1,11 +0,0 @@ - - - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/inspectionProfiles/profiles_settings.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/inspectionProfiles/profiles_settings.xml" deleted file mode 100644 index 3b312839bf2e939fea3ebdef15630a4b33e57caf..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/inspectionProfiles/profiles_settings.xml" +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/misc.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/misc.xml" deleted file mode 100644 index 58ff01f348f513cbc661d2f5e7ba034b4680a35d..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/misc.xml" +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - 1.7 - - - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/modules.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/modules.xml" deleted file mode 100644 index 64853b8a2a93e271984045dbb0de8705d7a9362f..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/modules.xml" +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/scopes/scope_settings.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/scopes/scope_settings.xml" deleted file mode 100644 index 922003b8433bcad6ce9778a37628d738faa26389..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/scopes/scope_settings.xml" +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/vcs.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/vcs.xml" deleted file mode 100644 index def6a6a18457989c7d18825c7c1bbfeefc8b261d..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/.idea/vcs.xml" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/IndicatorTabBar.iml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/IndicatorTabBar.iml" deleted file mode 100644 index 2a0220140b99c07253fdda48459490879137383b..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/IndicatorTabBar.iml" +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/.gitignore" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/.gitignore" deleted file mode 100644 index 796b96d1c402326528b4ba3c12ee9d92d0e212e9..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/.gitignore" +++ /dev/null @@ -1 +0,0 @@ -/build diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/README.md" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/README.md" deleted file mode 100644 index b2bb719295bc6905d113bad736618e31a72c2f49..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/README.md" +++ /dev/null @@ -1,176 +0,0 @@ -# IndicatorTabBar for Android - -## How to use - -If you want use this view, the operation is as follows: - -Because the IndicatorTabBar has custom attributes, if you want use them, you must add your own namespace in your xml file in the first component: - - - -##attrs.xml - - - - - - - - - - - - - - - - - - - - -##main.xml - - - - - - - - - - - - - - - - - - -##MainAcivity - - - - /**

项目名:IndicatorTabBar

- *

包名: com.my.indicatortabbar

- *

文件名:MainAcivity.java

- *

版本信息: 2.1.0

- *

日期: 2015/5/27/9:13.

- * Copyright (c) 2015帮你公司-版权所有 - */ - package com.my.indicatortabbar; - - import android.app.Activity; - import android.os.Bundle; - import android.support.v4.app.Fragment; - import android.support.v4.app.FragmentActivity; - import android.support.v4.app.FragmentManager; - import android.support.v4.app.FragmentPagerAdapter; - import android.support.v4.view.ViewPager; - - import java.util.ArrayList; - import java.util.Arrays; - import java.util.List; - - /** - *

名称:com.my.indicatortabbar.MainAcivity

- *

描述:

- *
-	 *
-	 * 
- * - * @author 鲍建明 - * @version 2.1.0 - * @date 2015/5/27/9:13 - */ - public class MainAcivity extends FragmentActivity { - - - private ViewPager mViewPager; - private IndicatorTabBar mIndicatorTabBar; - private List tableNames = Arrays.asList("上海", "北京", "广州", "深圳", "沈阳", "南京", "石家庄", "丽江"); - private List fragmentList; - - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.main); - mViewPager = (ViewPager) findViewById(R.id.viewpager); - mIndicatorTabBar = (IndicatorTabBar) findViewById(R.id.indicatorTabBar); - - intFragmentList(); - - mViewPager.setAdapter( new MyViewPager(getSupportFragmentManager(), fragmentList) ); - mIndicatorTabBar.initView(tableNames, mViewPager, 5); - } - - /** - * 初始化Fragment - */ - private void intFragmentList(){ - fragmentList = new ArrayList<>(); - for ( int i = 0; i < tableNames.size(); i++ ){ - FragmentFactory fragment = FragmentFactory.newInstance(tableNames.get(i)); - fragmentList.add(fragment); - } - } - - - - /** - *

名称:com.my.indicatortabbar.MainAcivity。MyViewPager

- *

描述:

- *
-	     *
-	     * 
- * - * @author 鲍建明 - * @version 2.1.0 - * @date 2015/5/27/9:13 - */ - class MyViewPager extends FragmentPagerAdapter{ - - private List fragmentList; - - public MyViewPager(FragmentManager fm, List fragmentList) { - super(fm); - this.fragmentList = fragmentList; - } - - @Override - public Fragment getItem(int i) { - return fragmentList.get(i); - } - - @Override - public int getCount() { - return fragmentList.size(); - } - } - } - -
- -##Demo -![image]() -![image]() -![image]() - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/app.iml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/app.iml" deleted file mode 100644 index c6c55c4e2c045f0aaceb50e0168ea3e306418330..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/app.iml" +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/build.gradle" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/build.gradle" deleted file mode 100644 index 303b260c1cc33ed6682a68851db0229c55d93e47..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/build.gradle" +++ /dev/null @@ -1,25 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 21 - buildToolsVersion "21.1.1" - - defaultConfig { - applicationId "com.my.indicatortabbar" - minSdkVersion 14 - targetSdkVersion 21 - versionCode 1 - versionName "1.0" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:21.0.3' -} diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/proguard-rules.pro" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/proguard-rules.pro" deleted file mode 100644 index 20913225b3230c794db53a3f872075597d4715d4..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/proguard-rules.pro" +++ /dev/null @@ -1,17 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in F:\java\Android\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 *; -#} diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/androidTest/java/com/my/indicatortabbar/ApplicationTest.java" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/androidTest/java/com/my/indicatortabbar/ApplicationTest.java" deleted file mode 100644 index c0d5af7312465c9b59eae52c6fed6d9d8e1a39f0..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/androidTest/java/com/my/indicatortabbar/ApplicationTest.java" +++ /dev/null @@ -1,13 +0,0 @@ -package com.my.indicatortabbar; - -import android.app.Application; -import android.test.ApplicationTestCase; - -/** - * Testing Fundamentals - */ -public class ApplicationTest extends ApplicationTestCase { - public ApplicationTest() { - super(Application.class); - } -} \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/AndroidManifest.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/AndroidManifest.xml" deleted file mode 100644 index b29904067b509c2fa960df0714ab0bb518525920..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/AndroidManifest.xml" +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/FragmentFactory.java" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/FragmentFactory.java" deleted file mode 100644 index 7ca668f572f53e9d79a65b0f56d8659cfcaa4ef5..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/FragmentFactory.java" +++ /dev/null @@ -1,77 +0,0 @@ -/**

项目名:IndicatorTabBar

- *

包名: com.my.indicatortabbar

- *

文件名:FragmentTest.java

- *

版本信息: 2.1.0

- *

日期: 2015/5/27/13:15.

- * Copyright (c) 2015帮你公司-版权所有 - */ -package com.my.indicatortabbar; - -import android.graphics.Color; -import android.os.Bundle; -import android.support.annotation.Nullable; -import android.support.v4.app.Fragment; -import android.view.Gravity; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.LinearLayout; -import android.widget.TextView; - -/** - *

名称:com.my.indicatortabbar.FragmentTest

- *

描述:

- *
- *
- * 
- * - * @author 鲍建明 - * @version 2.1.0 - * @date 2015/5/27/13:15 - */ -public class FragmentFactory extends Fragment { - - private String mText; - private final String mText_key = "FragmentFactory"; - - public static FragmentFactory newInstance(String mText){ - FragmentFactory mFragmentTest = new FragmentFactory(); - mFragmentTest.mText = mText; - return mFragmentTest; - } - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - if( savedInstanceState != null && savedInstanceState.containsKey(mText_key) ){ - mText = savedInstanceState.getString(mText_key); - } - } - - @Override - public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - TextView text = new TextView(getActivity()); - text.setGravity(Gravity.CENTER); - text.setText(mText); - text.setTextSize(10 * getResources().getDisplayMetrics().density); - text.setTextColor(Color.GRAY); - text.setPadding(20, 20, 20, 20); - - LinearLayout layout = new LinearLayout(getActivity()); - layout.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, - LinearLayout.LayoutParams.MATCH_PARENT)); - layout.setGravity(Gravity.CENTER); - layout.addView(text); - return layout; - } - - @Override - public void onSaveInstanceState(Bundle outState) { - super.onSaveInstanceState(outState); - outState.putString(mText_key, mText); - } - - - - -} diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/IndicatorTabBar.java" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/IndicatorTabBar.java" deleted file mode 100644 index 0dd3520d831f20bc39fd96b27f2b17ef721a71ad..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/IndicatorTabBar.java" +++ /dev/null @@ -1,388 +0,0 @@ -package com.my.indicatortabbar; - -import java.util.ArrayList; -import java.util.List; - -import android.content.Context; -import android.content.res.TypedArray; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.Paint; -import android.graphics.Rect; -import android.support.v4.view.ViewPager; -import android.support.v4.view.ViewPager.OnPageChangeListener; -import android.util.AttributeSet; -import android.util.DisplayMetrics; -import android.util.TypedValue; -import android.view.Gravity; -import android.view.MotionEvent; -import android.view.WindowManager; -import android.widget.FrameLayout; -import android.widget.HorizontalScrollView; -import android.widget.LinearLayout; -import android.widget.TextView; - -/** - * Indicator TabBar - * - * @author Andy - * @since 2015-05-12 - * - * Thanks for https://github.com/keithellis/MaterialWidget - */ -public class IndicatorTabBar extends HorizontalScrollView { - - private int mMaxColumn; - private static final int Default_Column = 3; - - private float mTranslationX; //指示条偏移量 - private int mTextSize; //文字的大小 - private int mTextColor; //默认没有选中的文字颜色 - private int mTextSelectedColor; //文字选中后的颜色 - - private int mUnderLineColor; //文字选中后的指示跳颜色 - private int mUnderLineHeight; //指示条高度 - - private TabContainer mTabContainer; - private TabView mCurrentTab; //当前的列 - private List mTabList = new ArrayList(); - private Rect lineRect = new Rect(); - private Paint linePaint = new Paint(Paint.ANTI_ALIAS_FLAG); - - /** the ViewPager used with the IndicatorTabBar, not necessary, you could use the IndicatorTabBar individually */ - private ViewPager mViewPager; - - public IndicatorTabBar(Context context) { - this(context, null); - } - - public IndicatorTabBar(Context context, AttributeSet attrs) { - this(context, attrs, 0); - } - - public IndicatorTabBar(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - setFillViewport(true); - - mTabContainer = new TabContainer(context); - mTabContainer.setLayoutParams(new LayoutParams( - LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); - mTabContainer.setOrientation(LinearLayout.HORIZONTAL);// default - addView(mTabContainer); - - TypedArray attributes = context.obtainStyledAttributes(attrs, - R.styleable.IndicatorTabBar); - mTextSize = attributes.getDimensionPixelSize( - R.styleable.IndicatorTabBar_tab_text_size, getResources() - .getDimensionPixelSize(R.dimen.tab_text_size)); - - mTextColor = attributes.getColor( - R.styleable.IndicatorTabBar_tab_text_color, getResources() - .getColor(R.color.tab_text_color)); - mTextSelectedColor = attributes.getColor( - R.styleable.IndicatorTabBar_tab_text_selected_color, - getResources().getColor(R.color.tab_text_selected_color)); - - mUnderLineColor = attributes.getColor( - R.styleable.IndicatorTabBar_tab_underline_color, getResources() - .getColor(R.color.tab_underline_color)); - mUnderLineHeight = attributes.getDimensionPixelSize( - R.styleable.IndicatorTabBar_tab_underline_height, getResources() - .getDimensionPixelSize(R.dimen.tab_underline_height)); - - mMaxColumn = attributes.getInteger( - R.styleable.IndicatorTabBar_tab_max_column, getResources() - .getInteger(R.integer.tab_max_column)); - - attributes.recycle(); - - linePaint.setStyle(Paint.Style.FILL); - } - - - /** - * 指示器初始化 - * @param tabNames 传入的列名称集合 - * @return - */ - public IndicatorTabBar initView(List tabNames) { - if (tabNames != null && tabNames.size() > 0) { - initView(tabNames, mMaxColumn); - } - return this; - } - - /** - * 指示器初始化 - * @param tabNames 传入的列名称集合 - * @param mViewPager ViewPager - * @param maxColumn 最多显示几列 - * @return - */ - public IndicatorTabBar initView(List tabNames, ViewPager mViewPager, int maxColumn){ - this.mViewPager = mViewPager; - initView(tabNames, maxColumn); - return this; - } - - /** - * 指示器初始化 - * @param tabNames 传入的列名称结合 - * @param maxColumn 最多显示几列 - * @return - */ - public IndicatorTabBar initView(List tabNames, int maxColumn) { - if (maxColumn <= 0) { - maxColumn = Default_Column; - } - int tabCount = tabNames.size(); - int screenWidth = getScreenWidth(getContext()); - //Divide equally - final int tabWidth = Math.round(screenWidth / maxColumn); - - if(tabNames == null ){ - throw new NullPointerException("tabNames is must not null"); - } - for (int i = 0; i < tabCount; i++) { - addTabView(i, tabWidth, tabNames.get(i)); - } - - if (mViewPager != null) { - mViewPager.setOnPageChangeListener(new OnPageChangeListener() { - - @Override - public void onPageSelected(int position) { - // The IndicatorTabBar's ScrollX and ScrollY both are 0 at first. - setTabSelected(position); - if (position >= mMaxColumn / 2) { - smoothScrollTo((position - (mMaxColumn / 2)) * tabWidth, 0); - } - } - - @Override - public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { - // TODO Auto-generated method stub - } - - @Override - public void onPageScrollStateChanged(int arg0) { - // TODO Auto-generated method stub - - } - }); - } - return this; - } - - - public void setMaxColumn(int column) { - this.mMaxColumn = column; - } - - public void setTextSize(int size) { - this.mTextSize = size; - } - - public void setTextColor(int color) { - this.mTextColor = color; - } - - public void setTextSelectedColor(int color) { - this.mTextSelectedColor = color; - } - - public void setUnderLineColor(int color) { - this.mUnderLineColor = color; - } - - public void setUnderLineHeight(int hight) { - this.mUnderLineHeight = hight; - } - - public void setViewPager(ViewPager viewPager) { - this.mViewPager = viewPager; - } - - /** - * add the TabView to TabContainer - * @param index tab's index - * @param width tab's width - * @param title tab's title - */ - private void addTabView(final int index, int width, String title) { - TabView tabView = new TabView(getContext()); - tabView.setIndex(index); - tabView.setText(title); - tabView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize); - tabView.setTextColor(mTextColor); - tabView.setWidth(width); - tabView.setTabWidth(width); - - tabView.setOnTabSelectedListener(new OnTabSelectedListener() { - @Override - public void onTabSelected(TabView tabView) { - tabView.getIndex(); - mCurrentTab = tabView; - mTabContainer.postInvalidate(); - - if (mViewPager != null) { - mViewPager.setCurrentItem(index); - } - } - }); - - if (index == 0) { - mCurrentTab = tabView; - } - mTabList.add(tabView); - mTabContainer.addView(tabView, new LinearLayout.LayoutParams( - LayoutParams.WRAP_CONTENT, - LayoutParams.MATCH_PARENT)); - } - - /** - * get the Screen Width in px - * @param context - * @return - */ - public int getScreenWidth(Context context) { - WindowManager wm = (WindowManager) context - .getSystemService(Context.WINDOW_SERVICE); - DisplayMetrics outMetrics = new DisplayMetrics(); - wm.getDefaultDisplay().getMetrics(outMetrics); - return outMetrics.widthPixels; - } - - /** - * set which tab is selected ,used for viewpager when onPageSelected - * - * @param position - */ - private void setTabSelected(int position) { - if (mTabList != null) { - TabView currentTabView = mTabList.get(position); - if (currentTabView != null) { - currentTabView.performSelectAction(); - } - } - } - - /** - * Tab container which extends LinearLayout as a ViewGroup for adding TabView - */ - private class TabContainer extends LinearLayout { - - public TabContainer(Context context) { - this(context, null); - } - - public TabContainer(Context context, AttributeSet attrs) { - this(context, attrs, 0); - } - - public TabContainer(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - setWillNotDraw(false); - } - - @Override - protected void onDraw(Canvas canvas) { - super.onDraw(canvas); - linePaint.setColor(mUnderLineColor); - - if (mCurrentTab != null) { - for (TabView tabView : mTabList) { - tabView.setTextColor(mTextColor); - } - mCurrentTab.setTextColor(mTextSelectedColor); - - int x = mCurrentTab.getIndex() * mCurrentTab.getTabWidth(); - lineRect.left = mCurrentTab.getIndex() * mCurrentTab.getTabWidth(); - lineRect.top = getHeight() - mUnderLineHeight; - lineRect.right = x + mCurrentTab.getWidth(); - lineRect.bottom = getHeight(); - - canvas.drawRect(lineRect, linePaint); - } - } - } - - /** - * Tab Item which extends TextView - */ - private class TabView extends TextView { - - /** Tab's index */ - private int mIndex; - /** Tab's width */ - private int mTabWidth; - - private OnTabSelectedListener mOnTabSelectedListener; - - public TabView(Context context) { - this(context, null); - } - - public TabView(Context context, AttributeSet attrs) { - this(context, attrs, 0); - } - - public TabView(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - - setGravity(Gravity.CENTER); - setBackgroundColor(Color.TRANSPARENT); - } - - public int getIndex() { - return mIndex; - } - - public void setIndex(int index) { - this.mIndex = index; - } - - public int getTabWidth() { - return mTabWidth; - } - - public void setTabWidth(int width) { - this.mTabWidth = width; - } - - public void setOnTabSelectedListener(OnTabSelectedListener listener) { - this.mOnTabSelectedListener = listener; - } - - public void performSelectAction() { - if (mOnTabSelectedListener != null) { - mOnTabSelectedListener.onTabSelected(TabView.this); - } - } - - @Override - public boolean onTouchEvent(MotionEvent event) { - switch (event.getAction()) { - case MotionEvent.ACTION_DOWN: - - break; - case MotionEvent.ACTION_MOVE: - - break; - case MotionEvent.ACTION_UP: - performSelectAction(); - break; - } - return true; - } - - } - - /** - * the interface will response when a Tab is selected - */ - public interface OnTabSelectedListener { - void onTabSelected(TabView tabView); - } - -} diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/MainAcivity.java" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/MainAcivity.java" deleted file mode 100644 index 0721bb3a52af14006d80bad2382d1d7f40647d68..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/java/com/my/indicatortabbar/MainAcivity.java" +++ /dev/null @@ -1,98 +0,0 @@ -/**

项目名:IndicatorTabBar

- *

包名: com.my.indicatortabbar

- *

文件名:MainAcivity.java

- *

版本信息: 2.1.0

- *

日期: 2015/5/27/9:13.

- * Copyright (c) 2015帮你公司-版权所有 - */ -package com.my.indicatortabbar; - -import android.app.Activity; -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; -import android.support.v4.view.ViewPager; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - *

名称:com.my.indicatortabbar.MainAcivity

- *

描述:

- *
- *
- * 
- * - * @author 鲍建明 - * @version 2.1.0 - * @date 2015/5/27/9:13 - */ -public class MainAcivity extends FragmentActivity { - - - private ViewPager mViewPager; - private IndicatorTabBar mIndicatorTabBar; - private List tableNames = Arrays.asList("上海", "北京", "广州", "深圳", "沈阳", "南京", "石家庄", "丽江"); - private List fragmentList; - - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.main); - mViewPager = (ViewPager) findViewById(R.id.viewpager); - mIndicatorTabBar = (IndicatorTabBar) findViewById(R.id.indicatorTabBar); - - intFragmentList(); - - mViewPager.setAdapter( new MyViewPager(getSupportFragmentManager(), fragmentList) ); - mIndicatorTabBar.initView(tableNames, mViewPager, 5); - } - - /** - * 初始化Fragment - */ - private void intFragmentList(){ - fragmentList = new ArrayList<>(); - for ( int i = 0; i < tableNames.size(); i++ ){ - FragmentFactory fragment = FragmentFactory.newInstance(tableNames.get(i)); - fragmentList.add(fragment); - } - } - - - - /** - *

名称:com.my.indicatortabbar.MainAcivity。MyViewPager

- *

描述:

- *
-     *
-     * 
- * - * @author 鲍建明 - * @version 2.1.0 - * @date 2015/5/27/9:13 - */ - class MyViewPager extends FragmentPagerAdapter{ - - private List fragmentList; - - public MyViewPager(FragmentManager fm, List fragmentList) { - super(fm); - this.fragmentList = fragmentList; - } - - @Override - public Fragment getItem(int i) { - return fragmentList.get(i); - } - - @Override - public int getCount() { - return fragmentList.size(); - } - } -} diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-hdpi/ic_launcher.png" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-hdpi/ic_launcher.png" deleted file mode 100644 index 96a442e5b8e9394ccf50bab9988cb2316026245d..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-hdpi/ic_launcher.png" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-mdpi/ic_launcher.png" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-mdpi/ic_launcher.png" deleted file mode 100644 index 359047dfa4ed206e41e2354f9c6b307e713efe32..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-mdpi/ic_launcher.png" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-xhdpi/ic_launcher.png" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-xhdpi/ic_launcher.png" deleted file mode 100644 index 71c6d760f05183ef8a47c614d8d13380c8528499..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-xhdpi/ic_launcher.png" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-xxhdpi/ic_launcher.png" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-xxhdpi/ic_launcher.png" deleted file mode 100644 index 4df18946442ed763bd52cf3adca31617848656fa..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/drawable-xxhdpi/ic_launcher.png" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/layout/main.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/layout/main.xml" deleted file mode 100644 index bef6a631250ac9fefb9dabd761d5d819920e8b27..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/layout/main.xml" +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/attrs.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/attrs.xml" deleted file mode 100644 index 43cdea33459cd4d710871a5a88f88abcc5a1f83a..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/attrs.xml" +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/default.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/default.xml" deleted file mode 100644 index 486fc2b05092f28ea22690adf0e1ca771f9a6db7..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/default.xml" +++ /dev/null @@ -1,15 +0,0 @@ - - - - - 15sp - #FAFAFA - #AFAFAF - #EE6E6C - #FA3E41 - - 8px - - 3 - - \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/strings.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/strings.xml" deleted file mode 100644 index d11861b5f8efd0ac9cbc14808d0ebe271ca890a2..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/strings.xml" +++ /dev/null @@ -1,3 +0,0 @@ - - HostTab指示器 - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/styles.xml" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/styles.xml" deleted file mode 100644 index 766ab9930487aebdf634594950b22d39b44d8125..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/src/main/res/values/styles.xml" +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/\346\240\267\345\210\2271.png" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/\346\240\267\345\210\2271.png" deleted file mode 100644 index 528a37dabeff39ea43b35e7e9cd149d24179251a..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/\346\240\267\345\210\2271.png" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/\346\240\267\345\210\2272.png" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/\346\240\267\345\210\2272.png" deleted file mode 100644 index 37f3cd8577b8df890ee8d09e7d5ef7ccf144beb3..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/app/\346\240\267\345\210\2272.png" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/build.gradle" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/build.gradle" deleted file mode 100644 index 6356aabdc2c67d3696214aa0e4e896957d2593ac..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/build.gradle" +++ /dev/null @@ -1,19 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. - -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:1.0.0' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} - -allprojects { - repositories { - jcenter() - } -} diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle.properties" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle.properties" deleted file mode 100644 index 1d3591c8a4c9c29578c36c87f80c05a6aea3ee3f..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle.properties" +++ /dev/null @@ -1,18 +0,0 @@ -# Project-wide Gradle settings. - -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. - -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html - -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -# Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 - -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true \ No newline at end of file diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle/wrapper/gradle-wrapper.jar" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle/wrapper/gradle-wrapper.jar" deleted file mode 100644 index 8c0fb64a8698b08ecc4158d828ca593c4928e9dd..0000000000000000000000000000000000000000 Binary files "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle/wrapper/gradle-wrapper.jar" and /dev/null differ diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle/wrapper/gradle-wrapper.properties" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle/wrapper/gradle-wrapper.properties" deleted file mode 100644 index 0c71e760dc93830dd3411fe50d6f5c86bf0a8f4d..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradle/wrapper/gradle-wrapper.properties" +++ /dev/null @@ -1,6 +0,0 @@ -#Wed Apr 10 15:27:10 PDT 2013 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradlew" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradlew" deleted file mode 100644 index 91a7e269e19dfc62e27137a0b57ef3e430cee4fd..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradlew" +++ /dev/null @@ -1,164 +0,0 @@ -#!/usr/bin/env bash - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn ( ) { - echo "$*" -} - -die ( ) { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; -esac - -# For Cygwin, ensure paths are in UNIX format before anything is touched. -if $cygwin ; then - [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` -fi - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >&- -APP_HOME="`pwd -P`" -cd "$SAVED" >&- - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules -function splitJvmOpts() { - JVM_OPTS=("$@") -} -eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" - -exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradlew.bat" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradlew.bat" deleted file mode 100644 index 8a0b282aa6885fb573c106b3551f7275c5f17e8e..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/gradlew.bat" +++ /dev/null @@ -1,90 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windowz variants - -if not "%OS%" == "Windows_NT" goto win9xME_args -if "%@eval[2+2]" == "4" goto 4NT_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* -goto execute - -:4NT_args -@rem Get arguments from the 4NT Shell from JP Software -set CMD_LINE_ARGS=%$ - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/settings.gradle" "b/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/settings.gradle" deleted file mode 100644 index e7b4def49cb53d9aa04228dd3edb14c9e635e003..0000000000000000000000000000000000000000 --- "a/IndicatorTabBar(ViewPager+\346\214\207\347\244\272\345\231\250\357\274\214\344\273\277\347\275\221\346\230\223\346\226\260\351\227\273)/settings.gradle" +++ /dev/null @@ -1 +0,0 @@ -include ':app'