diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 412eeda..0000000
--- a/.gitattributes
+++ /dev/null
@@ -1,22 +0,0 @@
-# Auto detect text files and perform LF normalization
-* text=auto
-
-# Custom for Visual Studio
-*.cs diff=csharp
-*.sln merge=union
-*.csproj merge=union
-*.vbproj merge=union
-*.fsproj merge=union
-*.dbproj merge=union
-
-# Standard to msysgit
-*.doc diff=astextplain
-*.DOC diff=astextplain
-*.docx diff=astextplain
-*.DOCX diff=astextplain
-*.dot diff=astextplain
-*.DOT diff=astextplain
-*.pdf diff=astextplain
-*.PDF diff=astextplain
-*.rtf diff=astextplain
-*.RTF diff=astextplain
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e52591d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,36 @@
+# Built application files
+*.apk
+*.ap_
+
+# Files for the Dalvik VM
+*.dex
+
+# Java class files
+*.class
+
+# Generated files
+bin/
+gen/
+
+# Gradle files
+.gradle/
+build/
+
+# Local configuration file (sdk path, etc)
+local.properties
+
+# Proguard folder generated by Eclipse
+proguard/
+
+# Log Files
+*.log
+
+# IntelliJ
+*.iml
+.idea/
+
+# Mac OS X
+.DS_Store
+
+# Windows
+thumbs.db
diff --git a/Demo/.classpath b/Demo/.classpath
deleted file mode 100644
index 7bc01d9..0000000
--- a/Demo/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/Demo/.project b/Demo/.project
deleted file mode 100644
index 09756f4..0000000
--- a/Demo/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- Demo
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/Demo/AndroidManifest.xml b/Demo/AndroidManifest.xml
deleted file mode 100644
index f37b69b..0000000
--- a/Demo/AndroidManifest.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Demo/bin/AndroidManifest.xml b/Demo/bin/AndroidManifest.xml
deleted file mode 100644
index f37b69b..0000000
--- a/Demo/bin/AndroidManifest.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Demo/bin/Demo.apk b/Demo/bin/Demo.apk
deleted file mode 100644
index de811ce..0000000
Binary files a/Demo/bin/Demo.apk and /dev/null differ
diff --git a/Demo/bin/R.txt b/Demo/bin/R.txt
deleted file mode 100644
index f1dc5bf..0000000
--- a/Demo/bin/R.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-int dimen activity_horizontal_margin 0x7f040000
-int dimen activity_vertical_margin 0x7f040001
-int drawable ic_launcher 0x7f020000
-int drawable ic_tab1 0x7f020001
-int drawable ic_tab2 0x7f020002
-int drawable ic_tab3 0x7f020003
-int id action_settings 0x7f080003
-int id pager 0x7f080000
-int id section_label 0x7f080002
-int id tab_bar 0x7f080001
-int layout activity_main 0x7f030000
-int layout custom_ab 0x7f030001
-int layout fragment_main 0x7f030002
-int menu main 0x7f070000
-int string action_settings 0x7f050004
-int string app_name 0x7f050000
-int string title_section1 0x7f050001
-int string title_section2 0x7f050002
-int string title_section3 0x7f050003
-int style AppBaseTheme 0x7f060000
-int style AppTheme 0x7f060001
diff --git a/Demo/bin/classes.dex b/Demo/bin/classes.dex
deleted file mode 100644
index b7848e2..0000000
Binary files a/Demo/bin/classes.dex and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/BuildConfig.class b/Demo/bin/classes/com/example/demo/BuildConfig.class
deleted file mode 100644
index 83635f8..0000000
Binary files a/Demo/bin/classes/com/example/demo/BuildConfig.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/MainActivity$PlaceholderFragment.class b/Demo/bin/classes/com/example/demo/MainActivity$PlaceholderFragment.class
deleted file mode 100644
index e13ff65..0000000
Binary files a/Demo/bin/classes/com/example/demo/MainActivity$PlaceholderFragment.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/MainActivity$SectionsPagerAdapter.class b/Demo/bin/classes/com/example/demo/MainActivity$SectionsPagerAdapter.class
deleted file mode 100644
index 6b58ab6..0000000
Binary files a/Demo/bin/classes/com/example/demo/MainActivity$SectionsPagerAdapter.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/MainActivity.class b/Demo/bin/classes/com/example/demo/MainActivity.class
deleted file mode 100644
index bd60ed3..0000000
Binary files a/Demo/bin/classes/com/example/demo/MainActivity.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$attr.class b/Demo/bin/classes/com/example/demo/R$attr.class
deleted file mode 100644
index 44f1bde..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$attr.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$dimen.class b/Demo/bin/classes/com/example/demo/R$dimen.class
deleted file mode 100644
index 6239ace..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$dimen.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$drawable.class b/Demo/bin/classes/com/example/demo/R$drawable.class
deleted file mode 100644
index d482ee4..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$drawable.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$id.class b/Demo/bin/classes/com/example/demo/R$id.class
deleted file mode 100644
index baa9d90..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$id.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$layout.class b/Demo/bin/classes/com/example/demo/R$layout.class
deleted file mode 100644
index e791aa0..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$layout.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$menu.class b/Demo/bin/classes/com/example/demo/R$menu.class
deleted file mode 100644
index 22c6903..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$menu.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$string.class b/Demo/bin/classes/com/example/demo/R$string.class
deleted file mode 100644
index afb09a5..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$string.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R$style.class b/Demo/bin/classes/com/example/demo/R$style.class
deleted file mode 100644
index 4e33344..0000000
Binary files a/Demo/bin/classes/com/example/demo/R$style.class and /dev/null differ
diff --git a/Demo/bin/classes/com/example/demo/R.class b/Demo/bin/classes/com/example/demo/R.class
deleted file mode 100644
index 611d9f5..0000000
Binary files a/Demo/bin/classes/com/example/demo/R.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$anim.class b/Demo/bin/classes/com/mirko/tbv/R$anim.class
deleted file mode 100644
index 4163a5a..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$anim.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$attr.class b/Demo/bin/classes/com/mirko/tbv/R$attr.class
deleted file mode 100644
index 5daf9d7..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$attr.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$bool.class b/Demo/bin/classes/com/mirko/tbv/R$bool.class
deleted file mode 100644
index 6c15ad4..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$bool.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$color.class b/Demo/bin/classes/com/mirko/tbv/R$color.class
deleted file mode 100644
index 87ce11d..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$color.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$dimen.class b/Demo/bin/classes/com/mirko/tbv/R$dimen.class
deleted file mode 100644
index 91c8b6e..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$dimen.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$drawable.class b/Demo/bin/classes/com/mirko/tbv/R$drawable.class
deleted file mode 100644
index da834cb..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$drawable.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$id.class b/Demo/bin/classes/com/mirko/tbv/R$id.class
deleted file mode 100644
index 36a4641..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$id.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$integer.class b/Demo/bin/classes/com/mirko/tbv/R$integer.class
deleted file mode 100644
index 0185681..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$integer.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$layout.class b/Demo/bin/classes/com/mirko/tbv/R$layout.class
deleted file mode 100644
index 6873ae9..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$layout.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$menu.class b/Demo/bin/classes/com/mirko/tbv/R$menu.class
deleted file mode 100644
index 46b7795..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$menu.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$string.class b/Demo/bin/classes/com/mirko/tbv/R$string.class
deleted file mode 100644
index 1d12a48..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$string.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$style.class b/Demo/bin/classes/com/mirko/tbv/R$style.class
deleted file mode 100644
index a4c6963..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$style.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R$styleable.class b/Demo/bin/classes/com/mirko/tbv/R$styleable.class
deleted file mode 100644
index 6ed6300..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R$styleable.class and /dev/null differ
diff --git a/Demo/bin/classes/com/mirko/tbv/R.class b/Demo/bin/classes/com/mirko/tbv/R.class
deleted file mode 100644
index 1ef4e2b..0000000
Binary files a/Demo/bin/classes/com/mirko/tbv/R.class and /dev/null differ
diff --git a/Demo/bin/dexedLibs/android-support-v13-432318a4f146c6a972b1352b7b601cbd.jar b/Demo/bin/dexedLibs/android-support-v13-432318a4f146c6a972b1352b7b601cbd.jar
deleted file mode 100644
index 6568e6b..0000000
Binary files a/Demo/bin/dexedLibs/android-support-v13-432318a4f146c6a972b1352b7b601cbd.jar and /dev/null differ
diff --git a/Demo/bin/dexedLibs/tbv-848a8bea956db3f485b4a13ed7ec88d4.jar b/Demo/bin/dexedLibs/tbv-848a8bea956db3f485b4a13ed7ec88d4.jar
deleted file mode 100644
index 1c2f45e..0000000
Binary files a/Demo/bin/dexedLibs/tbv-848a8bea956db3f485b4a13ed7ec88d4.jar and /dev/null differ
diff --git a/Demo/bin/dexedLibs/tbv-c07dde762a2ba5e2919c054401770a05.jar b/Demo/bin/dexedLibs/tbv-c07dde762a2ba5e2919c054401770a05.jar
deleted file mode 100644
index bdd1077..0000000
Binary files a/Demo/bin/dexedLibs/tbv-c07dde762a2ba5e2919c054401770a05.jar and /dev/null differ
diff --git a/Demo/bin/jarlist.cache b/Demo/bin/jarlist.cache
deleted file mode 100644
index 87402e7..0000000
--- a/Demo/bin/jarlist.cache
+++ /dev/null
@@ -1,5 +0,0 @@
-# cache for current jar dependency. DO NOT EDIT.
-# format is
-# Encoding is UTF-8
-1403199356247 621451 5896b0a4e377ac4242eb2bc785220c1c4fc052f4 C:\Users\UTENTE\Desktop\MirkoAndroidApps2014\Demo\libs\android-support-v4.jar
-1402936529471 621451 5896b0a4e377ac4242eb2bc785220c1c4fc052f4 C:\Users\UTENTE\Desktop\MirkoAndroidApps2014\TBV\libs\android-support-v4.jar
diff --git a/Demo/bin/res/crunch/drawable-hdpi/ic_launcher.png b/Demo/bin/res/crunch/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index efa7c5f..0000000
Binary files a/Demo/bin/res/crunch/drawable-hdpi/ic_launcher.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-hdpi/ic_tab1.png b/Demo/bin/res/crunch/drawable-hdpi/ic_tab1.png
deleted file mode 100644
index 0df13ea..0000000
Binary files a/Demo/bin/res/crunch/drawable-hdpi/ic_tab1.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-hdpi/ic_tab2.png b/Demo/bin/res/crunch/drawable-hdpi/ic_tab2.png
deleted file mode 100644
index ab44fd3..0000000
Binary files a/Demo/bin/res/crunch/drawable-hdpi/ic_tab2.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-hdpi/ic_tab3.png b/Demo/bin/res/crunch/drawable-hdpi/ic_tab3.png
deleted file mode 100644
index 3125e85..0000000
Binary files a/Demo/bin/res/crunch/drawable-hdpi/ic_tab3.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-mdpi/ic_launcher.png b/Demo/bin/res/crunch/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index ec27f2e..0000000
Binary files a/Demo/bin/res/crunch/drawable-mdpi/ic_launcher.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-mdpi/ic_tab1.png b/Demo/bin/res/crunch/drawable-mdpi/ic_tab1.png
deleted file mode 100644
index a5420d5..0000000
Binary files a/Demo/bin/res/crunch/drawable-mdpi/ic_tab1.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-mdpi/ic_tab2.png b/Demo/bin/res/crunch/drawable-mdpi/ic_tab2.png
deleted file mode 100644
index b733744..0000000
Binary files a/Demo/bin/res/crunch/drawable-mdpi/ic_tab2.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-mdpi/ic_tab3.png b/Demo/bin/res/crunch/drawable-mdpi/ic_tab3.png
deleted file mode 100644
index 3bd2671..0000000
Binary files a/Demo/bin/res/crunch/drawable-mdpi/ic_tab3.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xhdpi/ic_launcher.png b/Demo/bin/res/crunch/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index 92fc57d..0000000
Binary files a/Demo/bin/res/crunch/drawable-xhdpi/ic_launcher.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xhdpi/ic_tab1.png b/Demo/bin/res/crunch/drawable-xhdpi/ic_tab1.png
deleted file mode 100644
index e9ad4fe..0000000
Binary files a/Demo/bin/res/crunch/drawable-xhdpi/ic_tab1.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xhdpi/ic_tab2.png b/Demo/bin/res/crunch/drawable-xhdpi/ic_tab2.png
deleted file mode 100644
index 681d538..0000000
Binary files a/Demo/bin/res/crunch/drawable-xhdpi/ic_tab2.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xhdpi/ic_tab3.png b/Demo/bin/res/crunch/drawable-xhdpi/ic_tab3.png
deleted file mode 100644
index 0cafbfd..0000000
Binary files a/Demo/bin/res/crunch/drawable-xhdpi/ic_tab3.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xxhdpi/ic_launcher.png b/Demo/bin/res/crunch/drawable-xxhdpi/ic_launcher.png
deleted file mode 100644
index b6f8f4e..0000000
Binary files a/Demo/bin/res/crunch/drawable-xxhdpi/ic_launcher.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab1.png b/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab1.png
deleted file mode 100644
index 434ffca..0000000
Binary files a/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab1.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab2.png b/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab2.png
deleted file mode 100644
index 3c97325..0000000
Binary files a/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab2.png and /dev/null differ
diff --git a/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab3.png b/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab3.png
deleted file mode 100644
index 4d30eec..0000000
Binary files a/Demo/bin/res/crunch/drawable-xxhdpi/ic_tab3.png and /dev/null differ
diff --git a/Demo/bin/resources.ap_ b/Demo/bin/resources.ap_
deleted file mode 100644
index ad3c273..0000000
Binary files a/Demo/bin/resources.ap_ and /dev/null differ
diff --git a/Demo/gen/com/example/demo/BuildConfig.java b/Demo/gen/com/example/demo/BuildConfig.java
deleted file mode 100644
index 865f354..0000000
--- a/Demo/gen/com/example/demo/BuildConfig.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package com.example.demo;
-
-public final class BuildConfig {
- public final static boolean DEBUG = true;
-}
\ No newline at end of file
diff --git a/Demo/gen/com/example/demo/R.java b/Demo/gen/com/example/demo/R.java
deleted file mode 100644
index 56aa597..0000000
--- a/Demo/gen/com/example/demo/R.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.example.demo;
-
-public final class R {
- public static final class attr {
- }
- public static final class dimen {
- /** Default screen margins, per the Android Design guidelines.
-
- Example customization of dimensions originally defined in res/values/dimens.xml
- (such as screen margins) for screens with more than 820dp of available width. This
- would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
-
- */
- public static final int activity_horizontal_margin=0x7f040000;
- public static final int activity_vertical_margin=0x7f040001;
- }
- public static final class drawable {
- public static final int ic_launcher=0x7f020000;
- public static final int ic_tab1=0x7f020001;
- public static final int ic_tab2=0x7f020002;
- public static final int ic_tab3=0x7f020003;
- }
- public static final class id {
- public static final int action_settings=0x7f080003;
- public static final int pager=0x7f080000;
- public static final int section_label=0x7f080002;
- public static final int tab_bar=0x7f080001;
- }
- public static final class layout {
- public static final int activity_main=0x7f030000;
- public static final int custom_ab=0x7f030001;
- public static final int fragment_main=0x7f030002;
- }
- public static final class menu {
- public static final int main=0x7f070000;
- }
- public static final class string {
- public static final int action_settings=0x7f050004;
- public static final int app_name=0x7f050000;
- public static final int title_section1=0x7f050001;
- public static final int title_section2=0x7f050002;
- public static final int title_section3=0x7f050003;
- }
- public static final class style {
- /**
- Base application theme, dependent on API level. This theme is replaced
- by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-
-
- Theme customizations available in newer API levels can go in
- res/values-vXX/styles.xml, while customizations related to
- backward-compatibility can go here.
-
-
- Base application theme for API 11+. This theme completely replaces
- AppBaseTheme from res/values/styles.xml on API 11+ devices.
-
- API 11 theme customizations can go here.
-
- Base application theme for API 14+. This theme completely replaces
- AppBaseTheme from BOTH res/values/styles.xml and
- res/values-v11/styles.xml on API 14+ devices.
-
- API 14 theme customizations can go here.
- */
- public static final int AppBaseTheme=0x7f060000;
- /** Application theme.
- All customizations that are NOT specific to a particular API-level can go here.
- */
- public static final int AppTheme=0x7f060001;
- }
-}
diff --git a/Demo/gen/com/mirko/tbv/R.java b/Demo/gen/com/mirko/tbv/R.java
deleted file mode 100644
index c476659..0000000
--- a/Demo/gen/com/mirko/tbv/R.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-package com.mirko.tbv;
-
-public final class R {
- public static final class anim {
- }
- public static final class attr {
- }
- public static final class bool {
- }
- public static final class color {
- }
- public static final class dimen {
- public static final int activity_horizontal_margin = 0x7f040000;
- public static final int activity_vertical_margin = 0x7f040001;
- }
- public static final class drawable {
- public static final int ic_launcher = 0x7f020000;
- public static final int ic_tab1 = 0x7f020001;
- public static final int ic_tab2 = 0x7f020002;
- }
- public static final class id {
- public static final int action_settings = 0x7f080003;
- public static final int section_label = 0x7f080002;
- public static final int tab_bar = 0x7f080001;
- }
- public static final class integer {
- }
- public static final class layout {
- public static final int activity_main = 0x7f030000;
- public static final int fragment_main = 0x7f030002;
- }
- public static final class menu {
- public static final int main = 0x7f070000;
- }
- public static final class string {
- public static final int action_settings = 0x7f050004;
- public static final int app_name = 0x7f050000;
- }
- public static final class style {
- public static final int AppBaseTheme = 0x7f060000;
- public static final int AppTheme = 0x7f060001;
- }
- public static final class styleable {
- }
-}
diff --git a/Demo/ic_launcher-web.png b/Demo/ic_launcher-web.png
deleted file mode 100644
index a18cbb4..0000000
Binary files a/Demo/ic_launcher-web.png and /dev/null differ
diff --git a/Demo/libs/android-support-v13.jar b/Demo/libs/android-support-v13.jar
deleted file mode 100644
index c960ea4..0000000
Binary files a/Demo/libs/android-support-v13.jar and /dev/null differ
diff --git a/Demo/libs/android-support-v4.jar b/Demo/libs/android-support-v4.jar
deleted file mode 100644
index 9056828..0000000
Binary files a/Demo/libs/android-support-v4.jar and /dev/null differ
diff --git a/Demo/project.properties b/Demo/project.properties
deleted file mode 100644
index 974caee..0000000
--- a/Demo/project.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-19
-android.library.reference.1=../TBV
diff --git a/Demo/res/layout/activity_main.xml b/Demo/res/layout/activity_main.xml
deleted file mode 100644
index 59c1254..0000000
--- a/Demo/res/layout/activity_main.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/Demo/res/layout/custom_ab.xml b/Demo/res/layout/custom_ab.xml
deleted file mode 100644
index 0418bb2..0000000
--- a/Demo/res/layout/custom_ab.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/Demo/res/layout/fragment_main.xml b/Demo/res/layout/fragment_main.xml
deleted file mode 100644
index 8a829a7..0000000
--- a/Demo/res/layout/fragment_main.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
diff --git a/Demo/res/menu/main.xml b/Demo/res/menu/main.xml
deleted file mode 100644
index 9bd831b..0000000
--- a/Demo/res/menu/main.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
diff --git a/Demo/res/values-v11/styles.xml b/Demo/res/values-v11/styles.xml
deleted file mode 100644
index 3c02242..0000000
--- a/Demo/res/values-v11/styles.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
diff --git a/Demo/res/values-v14/styles.xml b/Demo/res/values-v14/styles.xml
deleted file mode 100644
index a91fd03..0000000
--- a/Demo/res/values-v14/styles.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
diff --git a/Demo/res/values-w820dp/dimens.xml b/Demo/res/values-w820dp/dimens.xml
deleted file mode 100644
index f3e7020..0000000
--- a/Demo/res/values-w820dp/dimens.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
- 64dp
-
-
diff --git a/Demo/res/values/dimens.xml b/Demo/res/values/dimens.xml
deleted file mode 100644
index 55c1e59..0000000
--- a/Demo/res/values/dimens.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- 16dp
- 16dp
-
-
diff --git a/Demo/res/values/strings.xml b/Demo/res/values/strings.xml
deleted file mode 100644
index 5968988..0000000
--- a/Demo/res/values/strings.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
- Demo
- Section 1
- Section 2
- Section 3
- Settings
-
-
diff --git a/Demo/res/values/styles.xml b/Demo/res/values/styles.xml
deleted file mode 100644
index 6ce89c7..0000000
--- a/Demo/res/values/styles.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/Demo/src/com/example/demo/MainActivity.java b/Demo/src/com/example/demo/MainActivity.java
deleted file mode 100644
index 6b94274..0000000
--- a/Demo/src/com/example/demo/MainActivity.java
+++ /dev/null
@@ -1,171 +0,0 @@
-package com.example.demo;
-
-import java.util.Locale;
-
-import com.mirko.tbv.TabBarView;
-import com.mirko.tbv.TabBarView.IconTabProvider;
-
-import android.app.ActionBar;
-import android.app.Activity;
-import android.app.Fragment;
-import android.app.FragmentManager;
-import android.content.Context;
-import android.os.Bundle;
-import android.support.v13.app.FragmentPagerAdapter;
-import android.support.v4.view.ViewPager;
-import android.view.LayoutInflater;
-import android.view.Menu;
-import android.view.MenuItem;
-import android.view.View;
-import android.view.ViewGroup;
-import android.widget.TextView;
-
-public class MainActivity extends Activity {
-
- private TabBarView tabBarView;
- /**
- * The {@link android.support.v4.view.PagerAdapter} that will provide
- * fragments for each of the sections. We use a {@link FragmentPagerAdapter}
- * derivative, which will keep every loaded fragment in memory. If this
- * becomes too memory intensive, it may be best to switch to a
- * {@link android.support.v13.app.FragmentStatePagerAdapter}.
- */
- SectionsPagerAdapter mSectionsPagerAdapter;
-
- /**
- * The {@link ViewPager} that will host the section contents.
- */
- ViewPager mViewPager;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
-
- LayoutInflater inflator =
- (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-
- View v = inflator.inflate(R.layout.custom_ab, null);
- tabBarView = (TabBarView) v.findViewById(R.id.tab_bar);
-
- getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
- getActionBar().setCustomView(v);
- // Create the adapter that will return a fragment for each of the three
- // primary sections of the activity.
- mSectionsPagerAdapter = new SectionsPagerAdapter(getFragmentManager());
-
- // Set up the ViewPager with the sections adapter.
- mViewPager = (ViewPager) findViewById(R.id.pager);
- mViewPager.setAdapter(mSectionsPagerAdapter);
-
- tabBarView.setViewPager(mViewPager);
- }
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
-
- // Inflate the menu; this adds items to the action bar if it is present.
- getMenuInflater().inflate(R.menu.main, menu);
- return true;
- }
-
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- // Handle action bar item clicks here. The action bar will
- // automatically handle clicks on the Home/Up button, so long
- // as you specify a parent activity in AndroidManifest.xml.
- int id = item.getItemId();
- if (id == R.id.action_settings) {
- return true;
- }
- return super.onOptionsItemSelected(item);
- }
-
- /**
- * A {@link FragmentPagerAdapter} that returns a fragment corresponding to
- * one of the sections/tabs/pages.
- */
- public class SectionsPagerAdapter extends FragmentPagerAdapter implements IconTabProvider{
-
- private int[] tab_icons={R.drawable.ic_tab1,
- R.drawable.ic_tab2,
- R.drawable.ic_tab3,
- };
-
-
- public SectionsPagerAdapter(FragmentManager fm) {
- super(fm);
- }
-
- @Override
- public Fragment getItem(int position) {
- // getItem is called to instantiate the fragment for the given page.
- // Return a PlaceholderFragment (defined as a static inner class
- // below).
- return PlaceholderFragment.newInstance(position + 1);
- }
-
- @Override
- public int getCount() {
- // Show 3 total pages.
- return tab_icons.length;
- }
-
- @Override
- public int getPageIconResId(int position) {
- return tab_icons[position];
- }
-
- @Override
- public CharSequence getPageTitle(int position) {
- Locale l = Locale.getDefault();
- switch (position) {
- case 0:
- return getString(R.string.title_section1).toUpperCase(l);
- case 1:
- return getString(R.string.title_section2).toUpperCase(l);
- case 2:
- return getString(R.string.title_section3).toUpperCase(l);
- }
- return null;
- }
- }
-
- /**
- * A placeholder fragment containing a simple view.
- */
- public static class PlaceholderFragment extends Fragment {
- /**
- * The fragment argument representing the section number for this
- * fragment.
- */
- private static final String ARG_SECTION_NUMBER = "section_number";
-
- /**
- * Returns a new instance of this fragment for the given section number.
- */
- public static PlaceholderFragment newInstance(int sectionNumber) {
- PlaceholderFragment fragment = new PlaceholderFragment();
- Bundle args = new Bundle();
- args.putInt(ARG_SECTION_NUMBER, sectionNumber);
- fragment.setArguments(args);
- return fragment;
- }
-
- public PlaceholderFragment() {
- }
-
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- View rootView = inflater.inflate(R.layout.fragment_main, container,
- false);
- TextView textView = (TextView) rootView
- .findViewById(R.id.section_label);
- textView.setText(Integer.toString(getArguments().getInt(
- ARG_SECTION_NUMBER)));
- return rootView;
- }
- }
-
-}
diff --git a/TabBarViewLibrary/.classpath b/TabBarViewLibrary/.classpath
deleted file mode 100644
index 7bc01d9..0000000
--- a/TabBarViewLibrary/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/TabBarViewLibrary/.project b/TabBarViewLibrary/.project
deleted file mode 100644
index 432aaa3..0000000
--- a/TabBarViewLibrary/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
- TBV
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/TabBarViewLibrary/AndroidManifest.xml b/TabBarViewLibrary/AndroidManifest.xml
deleted file mode 100644
index 37e2cc7..0000000
--- a/TabBarViewLibrary/AndroidManifest.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/TabBarViewLibrary/bin/AndroidManifest.xml b/TabBarViewLibrary/bin/AndroidManifest.xml
deleted file mode 100644
index c8fb669..0000000
--- a/TabBarViewLibrary/bin/AndroidManifest.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/TabBarViewLibrary/bin/R.txt b/TabBarViewLibrary/bin/R.txt
deleted file mode 100644
index c60c582..0000000
--- a/TabBarViewLibrary/bin/R.txt
+++ /dev/null
@@ -1,584 +0,0 @@
-int anim abc_fade_in 0x7f040000
-int anim abc_fade_out 0x7f040001
-int anim abc_slide_in_bottom 0x7f040002
-int anim abc_slide_in_top 0x7f040003
-int anim abc_slide_out_bottom 0x7f040004
-int anim abc_slide_out_top 0x7f040005
-int attr actionBarDivider 0x7f01000b
-int attr actionBarItemBackground 0x7f01000c
-int attr actionBarSize 0x7f01000a
-int attr actionBarSplitStyle 0x7f010008
-int attr actionBarStyle 0x7f010007
-int attr actionBarTabBarStyle 0x7f010004
-int attr actionBarTabStyle 0x7f010003
-int attr actionBarTabTextStyle 0x7f010005
-int attr actionBarWidgetTheme 0x7f010009
-int attr actionButtonStyle 0x7f010012
-int attr actionDropDownStyle 0x7f010043
-int attr actionLayout 0x7f01004a
-int attr actionMenuTextAppearance 0x7f01000d
-int attr actionMenuTextColor 0x7f01000e
-int attr actionModeBackground 0x7f010038
-int attr actionModeCloseButtonStyle 0x7f010037
-int attr actionModeCloseDrawable 0x7f01003a
-int attr actionModeCopyDrawable 0x7f01003c
-int attr actionModeCutDrawable 0x7f01003b
-int attr actionModeFindDrawable 0x7f010040
-int attr actionModePasteDrawable 0x7f01003d
-int attr actionModePopupWindowStyle 0x7f010042
-int attr actionModeSelectAllDrawable 0x7f01003e
-int attr actionModeShareDrawable 0x7f01003f
-int attr actionModeSplitBackground 0x7f010039
-int attr actionModeStyle 0x7f010036
-int attr actionModeWebSearchDrawable 0x7f010041
-int attr actionOverflowButtonStyle 0x7f010006
-int attr actionProviderClass 0x7f01004c
-int attr actionViewClass 0x7f01004b
-int attr activityChooserViewStyle 0x7f010068
-int attr background 0x7f01002b
-int attr backgroundSplit 0x7f01002d
-int attr backgroundStacked 0x7f01002c
-int attr buttonBarButtonStyle 0x7f010014
-int attr buttonBarStyle 0x7f010013
-int attr customNavigationLayout 0x7f01002e
-int attr disableChildrenWhenDisabled 0x7f010050
-int attr displayOptions 0x7f010024
-int attr divider 0x7f01002a
-int attr dividerHorizontal 0x7f010017
-int attr dividerPadding 0x7f010052
-int attr dividerVertical 0x7f010016
-int attr dropDownListViewStyle 0x7f01001d
-int attr dropdownListPreferredItemHeight 0x7f010044
-int attr expandActivityOverflowButtonDrawable 0x7f010067
-int attr height 0x7f010022
-int attr homeAsUpIndicator 0x7f01000f
-int attr homeLayout 0x7f01002f
-int attr icon 0x7f010028
-int attr iconifiedByDefault 0x7f010056
-int attr indeterminateProgressStyle 0x7f010031
-int attr initialActivityCount 0x7f010066
-int attr isLightTheme 0x7f010055
-int attr itemPadding 0x7f010033
-int attr listChoiceBackgroundIndicator 0x7f010048
-int attr listPopupWindowStyle 0x7f01001e
-int attr listPreferredItemHeight 0x7f010018
-int attr listPreferredItemHeightLarge 0x7f01001a
-int attr listPreferredItemHeightSmall 0x7f010019
-int attr listPreferredItemPaddingLeft 0x7f01001b
-int attr listPreferredItemPaddingRight 0x7f01001c
-int attr logo 0x7f010029
-int attr navigationMode 0x7f010023
-int attr paddingEnd 0x7f010035
-int attr paddingStart 0x7f010034
-int attr panelMenuListTheme 0x7f010047
-int attr panelMenuListWidth 0x7f010046
-int attr popupMenuStyle 0x7f010045
-int attr popupPromptView 0x7f01004f
-int attr progressBarPadding 0x7f010032
-int attr progressBarStyle 0x7f010030
-int attr prompt 0x7f01004d
-int attr queryHint 0x7f010057
-int attr searchDropdownBackground 0x7f010058
-int attr searchResultListItemHeight 0x7f010061
-int attr searchViewAutoCompleteTextView 0x7f010065
-int attr searchViewCloseIcon 0x7f010059
-int attr searchViewEditQuery 0x7f01005d
-int attr searchViewEditQueryBackground 0x7f01005e
-int attr searchViewGoIcon 0x7f01005a
-int attr searchViewSearchIcon 0x7f01005b
-int attr searchViewTextField 0x7f01005f
-int attr searchViewTextFieldRight 0x7f010060
-int attr searchViewVoiceIcon 0x7f01005c
-int attr selectableItemBackground 0x7f010015
-int attr showAsAction 0x7f010049
-int attr showDividers 0x7f010051
-int attr spinnerDropDownItemStyle 0x7f010054
-int attr spinnerMode 0x7f01004e
-int attr spinnerStyle 0x7f010053
-int attr subtitle 0x7f010025
-int attr subtitleTextStyle 0x7f010027
-int attr textAllCaps 0x7f010069
-int attr textAppearanceLargePopupMenu 0x7f010010
-int attr textAppearanceListItem 0x7f01001f
-int attr textAppearanceListItemSmall 0x7f010020
-int attr textAppearanceSearchResultSubtitle 0x7f010063
-int attr textAppearanceSearchResultTitle 0x7f010062
-int attr textAppearanceSmallPopupMenu 0x7f010011
-int attr textColorSearchUrl 0x7f010064
-int attr title 0x7f010021
-int attr titleTextStyle 0x7f010026
-int attr windowActionBar 0x7f010000
-int attr windowActionBarOverlay 0x7f010001
-int attr windowSplitActionBar 0x7f010002
-int bool abc_action_bar_embed_tabs_pre_jb 0x7f060000
-int bool abc_action_bar_expanded_action_views_exclusive 0x7f060001
-int bool abc_config_actionMenuItemAllCaps 0x7f060005
-int bool abc_config_allowActionMenuItemTextWithIcon 0x7f060004
-int bool abc_config_showMenuShortcutsWhenKeyboardPresent 0x7f060003
-int bool abc_split_action_bar_is_narrow 0x7f060002
-int color abc_search_url_text_holo 0x7f070003
-int color abc_search_url_text_normal 0x7f070000
-int color abc_search_url_text_pressed 0x7f070002
-int color abc_search_url_text_selected 0x7f070001
-int dimen abc_action_bar_default_height 0x7f080002
-int dimen abc_action_bar_icon_vertical_padding 0x7f080003
-int dimen abc_action_bar_progress_bar_size 0x7f08000a
-int dimen abc_action_bar_stacked_max_height 0x7f080009
-int dimen abc_action_bar_stacked_tab_max_width 0x7f080001
-int dimen abc_action_bar_subtitle_bottom_margin 0x7f080007
-int dimen abc_action_bar_subtitle_text_size 0x7f080005
-int dimen abc_action_bar_subtitle_top_margin 0x7f080006
-int dimen abc_action_bar_title_text_size 0x7f080004
-int dimen abc_action_button_min_width 0x7f080008
-int dimen abc_config_prefDialogWidth 0x7f080000
-int dimen abc_dropdownitem_icon_width 0x7f080010
-int dimen abc_dropdownitem_text_padding_left 0x7f08000e
-int dimen abc_dropdownitem_text_padding_right 0x7f08000f
-int dimen abc_panel_menu_list_width 0x7f08000b
-int dimen abc_search_view_preferred_width 0x7f08000d
-int dimen abc_search_view_text_min_width 0x7f08000c
-int dimen activity_horizontal_margin 0x7f080011
-int dimen activity_vertical_margin 0x7f080012
-int drawable abc_ab_bottom_solid_dark_holo 0x7f020000
-int drawable abc_ab_bottom_solid_light_holo 0x7f020001
-int drawable abc_ab_bottom_transparent_dark_holo 0x7f020002
-int drawable abc_ab_bottom_transparent_light_holo 0x7f020003
-int drawable abc_ab_share_pack_holo_dark 0x7f020004
-int drawable abc_ab_share_pack_holo_light 0x7f020005
-int drawable abc_ab_solid_dark_holo 0x7f020006
-int drawable abc_ab_solid_light_holo 0x7f020007
-int drawable abc_ab_stacked_solid_dark_holo 0x7f020008
-int drawable abc_ab_stacked_solid_light_holo 0x7f020009
-int drawable abc_ab_stacked_transparent_dark_holo 0x7f02000a
-int drawable abc_ab_stacked_transparent_light_holo 0x7f02000b
-int drawable abc_ab_transparent_dark_holo 0x7f02000c
-int drawable abc_ab_transparent_light_holo 0x7f02000d
-int drawable abc_cab_background_bottom_holo_dark 0x7f02000e
-int drawable abc_cab_background_bottom_holo_light 0x7f02000f
-int drawable abc_cab_background_top_holo_dark 0x7f020010
-int drawable abc_cab_background_top_holo_light 0x7f020011
-int drawable abc_ic_ab_back_holo_dark 0x7f020012
-int drawable abc_ic_ab_back_holo_light 0x7f020013
-int drawable abc_ic_cab_done_holo_dark 0x7f020014
-int drawable abc_ic_cab_done_holo_light 0x7f020015
-int drawable abc_ic_clear 0x7f020016
-int drawable abc_ic_clear_disabled 0x7f020017
-int drawable abc_ic_clear_holo_light 0x7f020018
-int drawable abc_ic_clear_normal 0x7f020019
-int drawable abc_ic_clear_search_api_disabled_holo_light 0x7f02001a
-int drawable abc_ic_clear_search_api_holo_light 0x7f02001b
-int drawable abc_ic_commit_search_api_holo_dark 0x7f02001c
-int drawable abc_ic_commit_search_api_holo_light 0x7f02001d
-int drawable abc_ic_go 0x7f02001e
-int drawable abc_ic_go_search_api_holo_light 0x7f02001f
-int drawable abc_ic_menu_moreoverflow_normal_holo_dark 0x7f020020
-int drawable abc_ic_menu_moreoverflow_normal_holo_light 0x7f020021
-int drawable abc_ic_menu_share_holo_dark 0x7f020022
-int drawable abc_ic_menu_share_holo_light 0x7f020023
-int drawable abc_ic_search 0x7f020024
-int drawable abc_ic_search_api_holo_light 0x7f020025
-int drawable abc_ic_voice_search 0x7f020026
-int drawable abc_ic_voice_search_api_holo_light 0x7f020027
-int drawable abc_item_background_holo_dark 0x7f020028
-int drawable abc_item_background_holo_light 0x7f020029
-int drawable abc_list_divider_holo_dark 0x7f02002a
-int drawable abc_list_divider_holo_light 0x7f02002b
-int drawable abc_list_focused_holo 0x7f02002c
-int drawable abc_list_longpressed_holo 0x7f02002d
-int drawable abc_list_pressed_holo_dark 0x7f02002e
-int drawable abc_list_pressed_holo_light 0x7f02002f
-int drawable abc_list_selector_background_transition_holo_dark 0x7f020030
-int drawable abc_list_selector_background_transition_holo_light 0x7f020031
-int drawable abc_list_selector_disabled_holo_dark 0x7f020032
-int drawable abc_list_selector_disabled_holo_light 0x7f020033
-int drawable abc_list_selector_holo_dark 0x7f020034
-int drawable abc_list_selector_holo_light 0x7f020035
-int drawable abc_menu_dropdown_panel_holo_dark 0x7f020036
-int drawable abc_menu_dropdown_panel_holo_light 0x7f020037
-int drawable abc_menu_hardkey_panel_holo_dark 0x7f020038
-int drawable abc_menu_hardkey_panel_holo_light 0x7f020039
-int drawable abc_search_dropdown_dark 0x7f02003a
-int drawable abc_search_dropdown_light 0x7f02003b
-int drawable abc_spinner_ab_default_holo_dark 0x7f02003c
-int drawable abc_spinner_ab_default_holo_light 0x7f02003d
-int drawable abc_spinner_ab_disabled_holo_dark 0x7f02003e
-int drawable abc_spinner_ab_disabled_holo_light 0x7f02003f
-int drawable abc_spinner_ab_focused_holo_dark 0x7f020040
-int drawable abc_spinner_ab_focused_holo_light 0x7f020041
-int drawable abc_spinner_ab_holo_dark 0x7f020042
-int drawable abc_spinner_ab_holo_light 0x7f020043
-int drawable abc_spinner_ab_pressed_holo_dark 0x7f020044
-int drawable abc_spinner_ab_pressed_holo_light 0x7f020045
-int drawable abc_tab_indicator_ab_holo 0x7f020046
-int drawable abc_tab_selected_focused_holo 0x7f020047
-int drawable abc_tab_selected_holo 0x7f020048
-int drawable abc_tab_selected_pressed_holo 0x7f020049
-int drawable abc_tab_unselected_pressed_holo 0x7f02004a
-int drawable abc_textfield_search_default_holo_dark 0x7f02004b
-int drawable abc_textfield_search_default_holo_light 0x7f02004c
-int drawable abc_textfield_search_right_default_holo_dark 0x7f02004d
-int drawable abc_textfield_search_right_default_holo_light 0x7f02004e
-int drawable abc_textfield_search_right_selected_holo_dark 0x7f02004f
-int drawable abc_textfield_search_right_selected_holo_light 0x7f020050
-int drawable abc_textfield_search_selected_holo_dark 0x7f020051
-int drawable abc_textfield_search_selected_holo_light 0x7f020052
-int drawable abc_textfield_searchview_holo_dark 0x7f020053
-int drawable abc_textfield_searchview_holo_light 0x7f020054
-int drawable abc_textfield_searchview_right_holo_dark 0x7f020055
-int drawable abc_textfield_searchview_right_holo_light 0x7f020056
-int drawable ic_launcher 0x7f020057
-int drawable ic_tab1 0x7f020058
-int drawable ic_tab2 0x7f020059
-int drawable ic_tab_1 0x7f02005a
-int id action_bar 0x7f05001c
-int id action_bar_activity_content 0x7f050015
-int id action_bar_container 0x7f05001b
-int id action_bar_overlay_layout 0x7f05001f
-int id action_bar_root 0x7f05001a
-int id action_bar_subtitle 0x7f050023
-int id action_bar_title 0x7f050022
-int id action_context_bar 0x7f05001d
-int id action_menu_divider 0x7f050016
-int id action_menu_presenter 0x7f050017
-int id action_mode_close_button 0x7f050024
-int id action_settings 0x7f050042
-int id activity_chooser_view_content 0x7f050025
-int id always 0x7f05000b
-int id beginning 0x7f050011
-int id checkbox 0x7f05002d
-int id collapseActionView 0x7f05000d
-int id default_activity_button 0x7f050028
-int id dialog 0x7f05000e
-int id disableHome 0x7f050008
-int id dropdown 0x7f05000f
-int id edit_query 0x7f050030
-int id end 0x7f050013
-int id expand_activities_button 0x7f050026
-int id expanded_menu 0x7f05002c
-int id home 0x7f050014
-int id homeAsUp 0x7f050005
-int id icon 0x7f05002a
-int id ifRoom 0x7f05000a
-int id image 0x7f050027
-int id listMode 0x7f050001
-int id list_item 0x7f050029
-int id middle 0x7f050012
-int id never 0x7f050009
-int id none 0x7f050010
-int id normal 0x7f050000
-int id pagerContent 0x7f05003c
-int id progress_circular 0x7f050018
-int id progress_horizontal 0x7f050019
-int id radio 0x7f05002f
-int id search_badge 0x7f050032
-int id search_bar 0x7f050031
-int id search_button 0x7f050033
-int id search_close_btn 0x7f050038
-int id search_edit_frame 0x7f050034
-int id search_go_btn 0x7f05003a
-int id search_mag_icon 0x7f050035
-int id search_plate 0x7f050036
-int id search_src_text 0x7f050037
-int id search_voice_btn 0x7f05003b
-int id section_label 0x7f05003d
-int id shortcut 0x7f05002e
-int id showCustom 0x7f050007
-int id showHome 0x7f050004
-int id showTitle 0x7f050006
-int id split_action_bar 0x7f05001e
-int id submit_area 0x7f050039
-int id tabMode 0x7f050002
-int id tab_1 0x7f050040
-int id tab_2 0x7f050041
-int id tab_bar 0x7f05003f
-int id text 0x7f05003e
-int id title 0x7f05002b
-int id top_action_bar 0x7f050020
-int id up 0x7f050021
-int id useLogo 0x7f050003
-int id withText 0x7f05000c
-int integer abc_max_action_buttons 0x7f090000
-int layout abc_action_bar_decor 0x7f030000
-int layout abc_action_bar_decor_include 0x7f030001
-int layout abc_action_bar_decor_overlay 0x7f030002
-int layout abc_action_bar_home 0x7f030003
-int layout abc_action_bar_tab 0x7f030004
-int layout abc_action_bar_tabbar 0x7f030005
-int layout abc_action_bar_title_item 0x7f030006
-int layout abc_action_bar_view_list_nav_layout 0x7f030007
-int layout abc_action_menu_item_layout 0x7f030008
-int layout abc_action_menu_layout 0x7f030009
-int layout abc_action_mode_bar 0x7f03000a
-int layout abc_action_mode_close_item 0x7f03000b
-int layout abc_activity_chooser_view 0x7f03000c
-int layout abc_activity_chooser_view_include 0x7f03000d
-int layout abc_activity_chooser_view_list_item 0x7f03000e
-int layout abc_expanded_menu_layout 0x7f03000f
-int layout abc_list_menu_item_checkbox 0x7f030010
-int layout abc_list_menu_item_icon 0x7f030011
-int layout abc_list_menu_item_layout 0x7f030012
-int layout abc_list_menu_item_radio 0x7f030013
-int layout abc_popup_menu_item_layout 0x7f030014
-int layout abc_search_dropdown_item_icons_2line 0x7f030015
-int layout abc_search_view 0x7f030016
-int layout activity_main 0x7f030017
-int layout fragment_main 0x7f030018
-int layout support_simple_spinner_dropdown_item 0x7f030019
-int layout tab_view_merge 0x7f03001a
-int layout tabbars 0x7f03001b
-int menu main 0x7f0c0000
-int string abc_action_bar_home_description 0x7f0a0001
-int string abc_action_bar_up_description 0x7f0a0002
-int string abc_action_menu_overflow_description 0x7f0a0003
-int string abc_action_mode_done 0x7f0a0000
-int string abc_activity_chooser_view_see_all 0x7f0a000a
-int string abc_activitychooserview_choose_application 0x7f0a0009
-int string abc_searchview_description_clear 0x7f0a0006
-int string abc_searchview_description_query 0x7f0a0005
-int string abc_searchview_description_search 0x7f0a0004
-int string abc_searchview_description_submit 0x7f0a0007
-int string abc_searchview_description_voice 0x7f0a0008
-int string abc_shareactionprovider_share_with 0x7f0a000c
-int string abc_shareactionprovider_share_with_application 0x7f0a000b
-int string action_settings 0x7f0a000f
-int string app_name 0x7f0a000d
-int string hello_world 0x7f0a000e
-int style AppBaseTheme 0x7f0b0083
-int style AppTheme 0x7f0b0084
-int style TextAppearance_AppCompat_Base_CompactMenu_Dialog 0x7f0b0063
-int style TextAppearance_AppCompat_Base_SearchResult 0x7f0b006d
-int style TextAppearance_AppCompat_Base_SearchResult_Subtitle 0x7f0b006f
-int style TextAppearance_AppCompat_Base_SearchResult_Title 0x7f0b006e
-int style TextAppearance_AppCompat_Base_Widget_PopupMenu_Large 0x7f0b0069
-int style TextAppearance_AppCompat_Base_Widget_PopupMenu_Small 0x7f0b006a
-int style TextAppearance_AppCompat_Light_Base_SearchResult 0x7f0b0070
-int style TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle 0x7f0b0072
-int style TextAppearance_AppCompat_Light_Base_SearchResult_Title 0x7f0b0071
-int style TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large 0x7f0b006b
-int style TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small 0x7f0b006c
-int style TextAppearance_AppCompat_Light_SearchResult_Subtitle 0x7f0b0035
-int style TextAppearance_AppCompat_Light_SearchResult_Title 0x7f0b0034
-int style TextAppearance_AppCompat_Light_Widget_PopupMenu_Large 0x7f0b0030
-int style TextAppearance_AppCompat_Light_Widget_PopupMenu_Small 0x7f0b0031
-int style TextAppearance_AppCompat_SearchResult_Subtitle 0x7f0b0033
-int style TextAppearance_AppCompat_SearchResult_Title 0x7f0b0032
-int style TextAppearance_AppCompat_Widget_ActionBar_Menu 0x7f0b001a
-int style TextAppearance_AppCompat_Widget_ActionBar_Subtitle 0x7f0b0006
-int style TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse 0x7f0b0008
-int style TextAppearance_AppCompat_Widget_ActionBar_Title 0x7f0b0005
-int style TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse 0x7f0b0007
-int style TextAppearance_AppCompat_Widget_ActionMode_Subtitle 0x7f0b001e
-int style TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse 0x7f0b0020
-int style TextAppearance_AppCompat_Widget_ActionMode_Title 0x7f0b001d
-int style TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse 0x7f0b001f
-int style TextAppearance_AppCompat_Widget_Base_ActionBar_Menu 0x7f0b0054
-int style TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle 0x7f0b0056
-int style TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse 0x7f0b0058
-int style TextAppearance_AppCompat_Widget_Base_ActionBar_Title 0x7f0b0055
-int style TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse 0x7f0b0057
-int style TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle 0x7f0b0051
-int style TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse 0x7f0b0053
-int style TextAppearance_AppCompat_Widget_Base_ActionMode_Title 0x7f0b0050
-int style TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse 0x7f0b0052
-int style TextAppearance_AppCompat_Widget_Base_DropDownItem 0x7f0b0061
-int style TextAppearance_AppCompat_Widget_DropDownItem 0x7f0b0021
-int style TextAppearance_AppCompat_Widget_PopupMenu_Large 0x7f0b002e
-int style TextAppearance_AppCompat_Widget_PopupMenu_Small 0x7f0b002f
-int style TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item 0x7f0b0062
-int style TextAppearance_Widget_AppCompat_ExpandedMenu_Item 0x7f0b0028
-int style Theme_AppCompat 0x7f0b0077
-int style Theme_AppCompat_Base_CompactMenu 0x7f0b0081
-int style Theme_AppCompat_Base_CompactMenu_Dialog 0x7f0b0082
-int style Theme_AppCompat_CompactMenu 0x7f0b007a
-int style Theme_AppCompat_CompactMenu_Dialog 0x7f0b007b
-int style Theme_AppCompat_Light 0x7f0b0078
-int style Theme_AppCompat_Light_DarkActionBar 0x7f0b0079
-int style Theme_Base 0x7f0b007c
-int style Theme_Base_AppCompat 0x7f0b007e
-int style Theme_Base_AppCompat_Light 0x7f0b007f
-int style Theme_Base_AppCompat_Light_DarkActionBar 0x7f0b0080
-int style Theme_Base_Light 0x7f0b007d
-int style Widget_AppCompat_ActionBar 0x7f0b0000
-int style Widget_AppCompat_ActionBar_Solid 0x7f0b0002
-int style Widget_AppCompat_ActionBar_TabBar 0x7f0b0011
-int style Widget_AppCompat_ActionBar_TabText 0x7f0b0017
-int style Widget_AppCompat_ActionBar_TabView 0x7f0b0014
-int style Widget_AppCompat_ActionButton 0x7f0b000b
-int style Widget_AppCompat_ActionButton_CloseMode 0x7f0b000d
-int style Widget_AppCompat_ActionButton_Overflow 0x7f0b000f
-int style Widget_AppCompat_ActionMode 0x7f0b001b
-int style Widget_AppCompat_ActivityChooserView 0x7f0b0038
-int style Widget_AppCompat_AutoCompleteTextView 0x7f0b0036
-int style Widget_AppCompat_Base_ActionBar 0x7f0b003a
-int style Widget_AppCompat_Base_ActionBar_Solid 0x7f0b003c
-int style Widget_AppCompat_Base_ActionBar_TabBar 0x7f0b0045
-int style Widget_AppCompat_Base_ActionBar_TabText 0x7f0b004b
-int style Widget_AppCompat_Base_ActionBar_TabView 0x7f0b0048
-int style Widget_AppCompat_Base_ActionButton 0x7f0b003f
-int style Widget_AppCompat_Base_ActionButton_CloseMode 0x7f0b0041
-int style Widget_AppCompat_Base_ActionButton_Overflow 0x7f0b0043
-int style Widget_AppCompat_Base_ActionMode 0x7f0b004e
-int style Widget_AppCompat_Base_ActivityChooserView 0x7f0b0075
-int style Widget_AppCompat_Base_AutoCompleteTextView 0x7f0b0073
-int style Widget_AppCompat_Base_DropDownItem_Spinner 0x7f0b005d
-int style Widget_AppCompat_Base_ListPopupWindow 0x7f0b0065
-int style Widget_AppCompat_Base_ListView_DropDown 0x7f0b005f
-int style Widget_AppCompat_Base_ListView_Menu 0x7f0b0064
-int style Widget_AppCompat_Base_PopupMenu 0x7f0b0067
-int style Widget_AppCompat_Base_ProgressBar 0x7f0b005a
-int style Widget_AppCompat_Base_ProgressBar_Horizontal 0x7f0b0059
-int style Widget_AppCompat_Base_Spinner 0x7f0b005b
-int style Widget_AppCompat_DropDownItem_Spinner 0x7f0b0024
-int style Widget_AppCompat_Light_ActionBar 0x7f0b0001
-int style Widget_AppCompat_Light_ActionBar_Solid 0x7f0b0003
-int style Widget_AppCompat_Light_ActionBar_Solid_Inverse 0x7f0b0004
-int style Widget_AppCompat_Light_ActionBar_TabBar 0x7f0b0012
-int style Widget_AppCompat_Light_ActionBar_TabBar_Inverse 0x7f0b0013
-int style Widget_AppCompat_Light_ActionBar_TabText 0x7f0b0018
-int style Widget_AppCompat_Light_ActionBar_TabText_Inverse 0x7f0b0019
-int style Widget_AppCompat_Light_ActionBar_TabView 0x7f0b0015
-int style Widget_AppCompat_Light_ActionBar_TabView_Inverse 0x7f0b0016
-int style Widget_AppCompat_Light_ActionButton 0x7f0b000c
-int style Widget_AppCompat_Light_ActionButton_CloseMode 0x7f0b000e
-int style Widget_AppCompat_Light_ActionButton_Overflow 0x7f0b0010
-int style Widget_AppCompat_Light_ActionMode_Inverse 0x7f0b001c
-int style Widget_AppCompat_Light_ActivityChooserView 0x7f0b0039
-int style Widget_AppCompat_Light_AutoCompleteTextView 0x7f0b0037
-int style Widget_AppCompat_Light_Base_ActionBar 0x7f0b003b
-int style Widget_AppCompat_Light_Base_ActionBar_Solid 0x7f0b003d
-int style Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse 0x7f0b003e
-int style Widget_AppCompat_Light_Base_ActionBar_TabBar 0x7f0b0046
-int style Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse 0x7f0b0047
-int style Widget_AppCompat_Light_Base_ActionBar_TabText 0x7f0b004c
-int style Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse 0x7f0b004d
-int style Widget_AppCompat_Light_Base_ActionBar_TabView 0x7f0b0049
-int style Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse 0x7f0b004a
-int style Widget_AppCompat_Light_Base_ActionButton 0x7f0b0040
-int style Widget_AppCompat_Light_Base_ActionButton_CloseMode 0x7f0b0042
-int style Widget_AppCompat_Light_Base_ActionButton_Overflow 0x7f0b0044
-int style Widget_AppCompat_Light_Base_ActionMode_Inverse 0x7f0b004f
-int style Widget_AppCompat_Light_Base_ActivityChooserView 0x7f0b0076
-int style Widget_AppCompat_Light_Base_AutoCompleteTextView 0x7f0b0074
-int style Widget_AppCompat_Light_Base_DropDownItem_Spinner 0x7f0b005e
-int style Widget_AppCompat_Light_Base_ListPopupWindow 0x7f0b0066
-int style Widget_AppCompat_Light_Base_ListView_DropDown 0x7f0b0060
-int style Widget_AppCompat_Light_Base_PopupMenu 0x7f0b0068
-int style Widget_AppCompat_Light_Base_Spinner 0x7f0b005c
-int style Widget_AppCompat_Light_DropDownItem_Spinner 0x7f0b0025
-int style Widget_AppCompat_Light_ListPopupWindow 0x7f0b002a
-int style Widget_AppCompat_Light_ListView_DropDown 0x7f0b0027
-int style Widget_AppCompat_Light_PopupMenu 0x7f0b002c
-int style Widget_AppCompat_Light_Spinner_DropDown_ActionBar 0x7f0b0023
-int style Widget_AppCompat_ListPopupWindow 0x7f0b0029
-int style Widget_AppCompat_ListView_DropDown 0x7f0b0026
-int style Widget_AppCompat_ListView_Menu 0x7f0b002d
-int style Widget_AppCompat_PopupMenu 0x7f0b002b
-int style Widget_AppCompat_ProgressBar 0x7f0b000a
-int style Widget_AppCompat_ProgressBar_Horizontal 0x7f0b0009
-int style Widget_AppCompat_Spinner_DropDown_ActionBar 0x7f0b0022
-int[] styleable ActionBar { 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033 }
-int styleable ActionBar_background 10
-int styleable ActionBar_backgroundSplit 12
-int styleable ActionBar_backgroundStacked 11
-int styleable ActionBar_customNavigationLayout 13
-int styleable ActionBar_displayOptions 3
-int styleable ActionBar_divider 9
-int styleable ActionBar_height 1
-int styleable ActionBar_homeLayout 14
-int styleable ActionBar_icon 7
-int styleable ActionBar_indeterminateProgressStyle 16
-int styleable ActionBar_itemPadding 18
-int styleable ActionBar_logo 8
-int styleable ActionBar_navigationMode 2
-int styleable ActionBar_progressBarPadding 17
-int styleable ActionBar_progressBarStyle 15
-int styleable ActionBar_subtitle 4
-int styleable ActionBar_subtitleTextStyle 6
-int styleable ActionBar_title 0
-int styleable ActionBar_titleTextStyle 5
-int[] styleable ActionBarLayout { 0x010100b3 }
-int styleable ActionBarLayout_android_layout_gravity 0
-int[] styleable ActionBarWindow { 0x7f010000, 0x7f010001, 0x7f010002 }
-int styleable ActionBarWindow_windowActionBar 0
-int styleable ActionBarWindow_windowActionBarOverlay 1
-int styleable ActionBarWindow_windowSplitActionBar 2
-int[] styleable ActionMenuItemView { 0x0101013f }
-int styleable ActionMenuItemView_android_minWidth 0
-int[] styleable ActionMenuView { }
-int[] styleable ActionMode { 0x7f010022, 0x7f010026, 0x7f010027, 0x7f01002b, 0x7f01002d }
-int styleable ActionMode_background 3
-int styleable ActionMode_backgroundSplit 4
-int styleable ActionMode_height 0
-int styleable ActionMode_subtitleTextStyle 2
-int styleable ActionMode_titleTextStyle 1
-int[] styleable ActivityChooserView { 0x7f010066, 0x7f010067 }
-int styleable ActivityChooserView_expandActivityOverflowButtonDrawable 1
-int styleable ActivityChooserView_initialActivityCount 0
-int[] styleable CompatTextView { 0x7f010069 }
-int styleable CompatTextView_textAllCaps 0
-int[] styleable LinearLayoutICS { 0x7f01002a, 0x7f010051, 0x7f010052 }
-int styleable LinearLayoutICS_divider 0
-int styleable LinearLayoutICS_dividerPadding 2
-int styleable LinearLayoutICS_showDividers 1
-int[] styleable MenuGroup { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }
-int styleable MenuGroup_android_checkableBehavior 5
-int styleable MenuGroup_android_enabled 0
-int styleable MenuGroup_android_id 1
-int styleable MenuGroup_android_menuCategory 3
-int styleable MenuGroup_android_orderInCategory 4
-int styleable MenuGroup_android_visible 2
-int[] styleable MenuItem { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c }
-int styleable MenuItem_actionLayout 14
-int styleable MenuItem_actionProviderClass 16
-int styleable MenuItem_actionViewClass 15
-int styleable MenuItem_android_alphabeticShortcut 9
-int styleable MenuItem_android_checkable 11
-int styleable MenuItem_android_checked 3
-int styleable MenuItem_android_enabled 1
-int styleable MenuItem_android_icon 0
-int styleable MenuItem_android_id 2
-int styleable MenuItem_android_menuCategory 5
-int styleable MenuItem_android_numericShortcut 10
-int styleable MenuItem_android_onClick 12
-int styleable MenuItem_android_orderInCategory 6
-int styleable MenuItem_android_title 7
-int styleable MenuItem_android_titleCondensed 8
-int styleable MenuItem_android_visible 4
-int styleable MenuItem_showAsAction 13
-int[] styleable MenuView { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 }
-int styleable MenuView_android_headerBackground 4
-int styleable MenuView_android_horizontalDivider 2
-int styleable MenuView_android_itemBackground 5
-int styleable MenuView_android_itemIconDisabledAlpha 6
-int styleable MenuView_android_itemTextAppearance 1
-int styleable MenuView_android_preserveIconSpacing 7
-int styleable MenuView_android_verticalDivider 3
-int styleable MenuView_android_windowAnimationStyle 0
-int[] styleable SearchView { 0x0101011f, 0x01010220, 0x01010264, 0x7f010056, 0x7f010057 }
-int styleable SearchView_android_imeOptions 2
-int styleable SearchView_android_inputType 1
-int styleable SearchView_android_maxWidth 0
-int styleable SearchView_iconifiedByDefault 3
-int styleable SearchView_queryHint 4
-int[] styleable Spinner { 0x010100af, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 }
-int styleable Spinner_android_dropDownHorizontalOffset 4
-int styleable Spinner_android_dropDownSelector 1
-int styleable Spinner_android_dropDownVerticalOffset 5
-int styleable Spinner_android_dropDownWidth 3
-int styleable Spinner_android_gravity 0
-int styleable Spinner_android_popupBackground 2
-int styleable Spinner_disableChildrenWhenDisabled 9
-int styleable Spinner_popupPromptView 8
-int styleable Spinner_prompt 6
-int styleable Spinner_spinnerMode 7
-int[] styleable Theme { 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048 }
-int styleable Theme_actionDropDownStyle 0
-int styleable Theme_dropdownListPreferredItemHeight 1
-int styleable Theme_listChoiceBackgroundIndicator 5
-int styleable Theme_panelMenuListTheme 4
-int styleable Theme_panelMenuListWidth 3
-int styleable Theme_popupMenuStyle 2
-int[] styleable View { 0x010100da, 0x7f010034, 0x7f010035 }
-int styleable View_android_focusable 0
-int styleable View_paddingEnd 2
-int styleable View_paddingStart 1
diff --git a/TabBarViewLibrary/bin/TBV.apk b/TabBarViewLibrary/bin/TBV.apk
deleted file mode 100644
index c6054fd..0000000
Binary files a/TabBarViewLibrary/bin/TBV.apk and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes.dex b/TabBarViewLibrary/bin/classes.dex
deleted file mode 100644
index 9b8801c..0000000
Binary files a/TabBarViewLibrary/bin/classes.dex and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/BuildConfig.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/BuildConfig.class
deleted file mode 100644
index 72d59b7..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/BuildConfig.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$1.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$1.class
deleted file mode 100644
index 10498f2..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$1.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$2.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$2.class
deleted file mode 100644
index 95ef720..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$2.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$3.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$3.class
deleted file mode 100644
index cfcbc1e..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet$3.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet.class
deleted file mode 100644
index 4c06a54..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/CheatSheet.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$attr.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$attr.class
deleted file mode 100644
index f4596ff..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$attr.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$dimen.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$dimen.class
deleted file mode 100644
index 490f51c..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$dimen.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$drawable.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$drawable.class
deleted file mode 100644
index 3cd8fb9..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$drawable.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$id.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$id.class
deleted file mode 100644
index 0be0cec..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$id.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$layout.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$layout.class
deleted file mode 100644
index 4878590..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$layout.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$menu.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$menu.class
deleted file mode 100644
index 65f2ef1..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$menu.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$string.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$string.class
deleted file mode 100644
index 8dfc3f4..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$string.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$style.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$style.class
deleted file mode 100644
index 1151fd7..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R$style.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/R.class
deleted file mode 100644
index 0ff5748..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/R.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$1.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$1.class
deleted file mode 100644
index d302a6c..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$1.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$2.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$2.class
deleted file mode 100644
index 1e0a3ef..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$2.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$3.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$3.class
deleted file mode 100644
index 72a1b52..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$3.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$IconTabProvider.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$IconTabProvider.class
deleted file mode 100644
index d49785b..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$IconTabProvider.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$PageListener.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$PageListener.class
deleted file mode 100644
index 4258841..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView$PageListener.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView.class
deleted file mode 100644
index 98ae4c8..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabBarView.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabView.class b/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabView.class
deleted file mode 100644
index 4f4db01..0000000
Binary files a/TabBarViewLibrary/bin/classes/com/mirko/tbv/TabView.class and /dev/null differ
diff --git a/TabBarViewLibrary/bin/dexedLibs/android-support-v4-33d592d45eceb71d6896017be6d2eba9.jar b/TabBarViewLibrary/bin/dexedLibs/android-support-v4-33d592d45eceb71d6896017be6d2eba9.jar
deleted file mode 100644
index e90675b..0000000
Binary files a/TabBarViewLibrary/bin/dexedLibs/android-support-v4-33d592d45eceb71d6896017be6d2eba9.jar and /dev/null differ
diff --git a/TabBarViewLibrary/bin/dexedLibs/android-support-v4-ba3deba850c053a2f01a5d796e85426e.jar b/TabBarViewLibrary/bin/dexedLibs/android-support-v4-ba3deba850c053a2f01a5d796e85426e.jar
deleted file mode 100644
index 243c4c5..0000000
Binary files a/TabBarViewLibrary/bin/dexedLibs/android-support-v4-ba3deba850c053a2f01a5d796e85426e.jar and /dev/null differ
diff --git a/TabBarViewLibrary/bin/dexedLibs/android-support-v7-appcompat-b339799e390047d5de03b81bb355d711.jar b/TabBarViewLibrary/bin/dexedLibs/android-support-v7-appcompat-b339799e390047d5de03b81bb355d711.jar
deleted file mode 100644
index 5b0f3f9..0000000
Binary files a/TabBarViewLibrary/bin/dexedLibs/android-support-v7-appcompat-b339799e390047d5de03b81bb355d711.jar and /dev/null differ
diff --git a/TabBarViewLibrary/bin/dexedLibs/appcompat_v7-d3e02e39fb3b1b5fd601cbb86f7f133b.jar b/TabBarViewLibrary/bin/dexedLibs/appcompat_v7-d3e02e39fb3b1b5fd601cbb86f7f133b.jar
deleted file mode 100644
index 2e3c3a3..0000000
Binary files a/TabBarViewLibrary/bin/dexedLibs/appcompat_v7-d3e02e39fb3b1b5fd601cbb86f7f133b.jar and /dev/null differ
diff --git a/TabBarViewLibrary/bin/jarlist.cache b/TabBarViewLibrary/bin/jarlist.cache
deleted file mode 100644
index e2717b6..0000000
--- a/TabBarViewLibrary/bin/jarlist.cache
+++ /dev/null
@@ -1,5 +0,0 @@
-# cache for current jar dependency. DO NOT EDIT.
-# format is
-# Encoding is UTF-8
-1400693892057 621451 5896b0a4e377ac4242eb2bc785220c1c4fc052f4 C:\Users\UTENTE\Desktop\MirkoAndroidApps2014\appcompat_v7\libs\android-support-v4.jar
-1402936529471 621451 5896b0a4e377ac4242eb2bc785220c1c4fc052f4 C:\Users\UTENTE\Desktop\MirkoAndroidApps2014\TBV\libs\android-support-v4.jar
diff --git a/TabBarViewLibrary/bin/resources.ap_ b/TabBarViewLibrary/bin/resources.ap_
deleted file mode 100644
index 5b144c2..0000000
Binary files a/TabBarViewLibrary/bin/resources.ap_ and /dev/null differ
diff --git a/TabBarViewLibrary/bin/tbv.jar b/TabBarViewLibrary/bin/tbv.jar
deleted file mode 100644
index 6017b2c..0000000
Binary files a/TabBarViewLibrary/bin/tbv.jar and /dev/null differ
diff --git a/TabBarViewLibrary/gen/com/mirko/tbv/BuildConfig.java b/TabBarViewLibrary/gen/com/mirko/tbv/BuildConfig.java
deleted file mode 100644
index 466309f..0000000
--- a/TabBarViewLibrary/gen/com/mirko/tbv/BuildConfig.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package com.mirko.tbv;
-
-public final class BuildConfig {
- public final static boolean DEBUG = true;
-}
\ No newline at end of file
diff --git a/TabBarViewLibrary/gen/com/mirko/tbv/R.java b/TabBarViewLibrary/gen/com/mirko/tbv/R.java
deleted file mode 100644
index f354561..0000000
--- a/TabBarViewLibrary/gen/com/mirko/tbv/R.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.mirko.tbv;
-
-public final class R {
- public static final class attr {
- }
- public static final class dimen {
- /** Default screen margins, per the Android Design guidelines.
-
- Example customization of dimensions originally defined in res/values/dimens.xml
- (such as screen margins) for screens with more than 820dp of available width. This
- would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively).
-
- */
- public static final int activity_horizontal_margin=0x7f040000;
- public static final int activity_vertical_margin=0x7f040001;
- }
- public static final class drawable {
- public static final int ic_action_settings=0x7f020000;
- public static final int ic_launcher=0x7f020001;
- public static final int ic_tab1=0x7f020002;
- public static final int ic_tab2=0x7f020003;
- public static final int ic_tab_1=0x7f020004;
- public static final int ic_tab_3=0x7f020005;
- }
- public static final class id {
- public static final int action_settings=0x7f080005;
- public static final int image=0x7f080002;
- public static final int pagerContent=0x7f080000;
- public static final int section_label=0x7f080001;
- public static final int tab_bar=0x7f080004;
- public static final int text=0x7f080003;
- }
- public static final class layout {
- public static final int activity_main=0x7f030000;
- public static final int fragment_main=0x7f030001;
- public static final int tab_view_merge=0x7f030002;
- public static final int tabbars=0x7f030003;
- }
- public static final class menu {
- public static final int main=0x7f070000;
- }
- public static final class string {
- public static final int action_settings=0x7f050002;
- public static final int app_name=0x7f050000;
- public static final int hello_world=0x7f050001;
- }
- public static final class style {
- /**
- Base application theme, dependent on API level. This theme is replaced
- by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-
-
- Theme customizations available in newer API levels can go in
- res/values-vXX/styles.xml, while customizations related to
- backward-compatibility can go here.
-
-
- Base application theme for API 11+. This theme completely replaces
- AppBaseTheme from res/values/styles.xml on API 11+ devices.
-
- API 11 theme customizations can go here.
-
- Base application theme for API 14+. This theme completely replaces
- AppBaseTheme from BOTH res/values/styles.xml and
- res/values-v11/styles.xml on API 14+ devices.
-
- API 14 theme customizations can go here.
- */
- public static final int AppBaseTheme=0x7f060000;
- /** Application theme.
- All customizations that are NOT specific to a particular API-level can go here.
- */
- public static final int AppTheme=0x7f060001;
- }
-}
diff --git a/TabBarViewLibrary/ic_launcher-web.png b/TabBarViewLibrary/ic_launcher-web.png
deleted file mode 100644
index a18cbb4..0000000
Binary files a/TabBarViewLibrary/ic_launcher-web.png and /dev/null differ
diff --git a/TabBarViewLibrary/libs/android-support-v4.jar b/TabBarViewLibrary/libs/android-support-v4.jar
deleted file mode 100644
index 9056828..0000000
Binary files a/TabBarViewLibrary/libs/android-support-v4.jar and /dev/null differ
diff --git a/TabBarViewLibrary/project.properties b/TabBarViewLibrary/project.properties
deleted file mode 100644
index 91d2b02..0000000
--- a/TabBarViewLibrary/project.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-19
-android.library=true
diff --git a/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java b/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java
deleted file mode 100644
index 1da02dc..0000000
--- a/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java
+++ /dev/null
@@ -1,237 +0,0 @@
-package com.mirko.tbv;
-
-import android.annotation.SuppressLint;
-import android.content.Context;
-import android.graphics.Canvas;
-import android.graphics.Color;
-import android.graphics.Paint;
-import android.support.v4.view.ViewPager;
-import android.support.v4.view.ViewPager.OnPageChangeListener;
-import android.util.AttributeSet;
-import android.view.View;
-import android.view.ViewTreeObserver.OnGlobalLayoutListener;
-import android.widget.LinearLayout;
-
-public class TabBarView extends LinearLayout {
- public interface IconTabProvider {
- public int getPageIconResId(int position);
- }
-
-
- private static final int STRIP_HEIGHT = 6;
-
- public final Paint mPaint;
-
- private int mStripHeight;
- private float mOffset = 0f;
- public static int mSelectedTab = 0;
- public ViewPager pager;
-
- public static int tabCount;
- private final PageListener pageListener = new PageListener();
- public OnPageChangeListener delegatePageListener;
-
- private View child;
-
- private View nextChild;
-
- public static int a;
-
- public TabBarView(Context context) {
- this(context, null);
- }
-
- public TabBarView(Context context, AttributeSet attrs) {
- this(context, attrs, android.R.attr.actionBarTabBarStyle);
- }
-
- public TabBarView(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
-
- setWillNotDraw(false);
-
- mPaint = new Paint();
- mPaint.setColor(Color.WHITE);
- mPaint.setAntiAlias(true);
-
- mStripHeight = (int) (STRIP_HEIGHT * getResources().getDisplayMetrics().density + .5f);
-}
-
- public void setStripColor(int color) {
- if (mPaint.getColor() != color) {
- mPaint.setColor(color);
- invalidate();
- }
- }
-
- public void setStripHeight(int height) {
- if (mStripHeight != height) {
- mStripHeight = height;
- invalidate();
- }
- }
-
- public void setSelectedTab(int tabIndex) {
- if (tabIndex < 0) {
- tabIndex = 0;
- }
- final int childCount = getChildCount();
- if (tabIndex >= childCount) {
- tabIndex = childCount - 1;
- }
- if (mSelectedTab != tabIndex) {
- mSelectedTab = tabIndex;
- invalidate();
- }
- }
-
- public void setOffset(int position, float offset) {
- if (mOffset != offset) {
- mOffset = offset;
- invalidate();
- }
- }
-
- @Override
- protected void onDraw(Canvas canvas) {
- super.onDraw(canvas);
- // Draw the strip manually
- child = getChildAt(mSelectedTab);
- int height = getHeight();
- if (child != null) {
- float left = child.getLeft();
- float right = child.getRight();
- if (mOffset > 0f && mSelectedTab < tabCount - 1 ) {
- nextChild = getChildAt(mSelectedTab + 1);
- if (nextChild != null) {
- final float nextTabLeft = nextChild.getLeft();
- final float nextTabRight = nextChild.getRight();
- left = (mOffset * nextTabLeft + (1f - mOffset) * left);
- right = (mOffset * nextTabRight + (1f - mOffset) * right);
- }
- }
- canvas.drawRect(left, height - mStripHeight, right, height, mPaint);
- }
- }
-
- public void setViewPager(ViewPager pager) {
- this.pager = pager;
-
- if (pager.getAdapter() == null) {
- throw new IllegalStateException("ViewPager does not have adapter instance.");
- }
-
- pager.setOnPageChangeListener(pageListener);
-
- notifyDataSetChanged();
- }
-
- private class PageListener implements OnPageChangeListener {
-
- @Override
- public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
-
- mSelectedTab = position;
- mOffset = positionOffset;
-
- invalidate();
-
- if (delegatePageListener != null) {
- delegatePageListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
- }
- }
-
- @Override
- public void onPageScrollStateChanged(int state) {
- if (state == ViewPager.SCROLL_STATE_IDLE) {
-
- }
-
- if (delegatePageListener != null) {
- delegatePageListener.onPageScrollStateChanged(state);
- }
- }
-
- @Override
- public void onPageSelected(int position) {
- if (delegatePageListener != null) {
- delegatePageListener.onPageSelected(position);
- }
- }
-
- }
-
- public void notifyDataSetChanged() {
-
- this.removeAllViews();
-
- tabCount = pager.getAdapter().getCount();
-
- for (int i = 0; i < tabCount; i++) {
-
- if(getResources().getConfiguration().orientation==1){
-
- addTabViewP(i, pager.getAdapter().getPageTitle(i).toString(),
- ((IconTabProvider) pager.getAdapter()).getPageIconResId(i));
-
- }else{
-
- addTabViewL(i, pager.getAdapter().getPageTitle(i).toString(),
- ((IconTabProvider) pager.getAdapter()).getPageIconResId(i));
-
- }
- }
-
- getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {
-
- @SuppressLint("NewApi")
- @Override
- public void onGlobalLayout() {
-
- getViewTreeObserver().removeOnGlobalLayoutListener(this);
-
- mSelectedTab = pager.getCurrentItem();
-
- }
- });
-
- }
-
- private void addTabViewL(final int i, String string, int pageIconResId) {
- // TODO Auto-generated method stub
- TabView tab = new TabView(getContext());
-// tab.setIcon(pageIconResId);
- tab.setText(string, pageIconResId);
- tab.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
- pager.setCurrentItem(i);
- }
- });
-
- this.addView(tab);
- }
-
-
- private void addTabViewP(final int i, final String string, int pageIconResId) {
- // TODO Auto-generated method stub
- final TabView tab = new TabView(getContext());
- tab.setIcon(pageIconResId);
- tab.setOnClickListener(new OnClickListener() {
- @Override
- public void onClick(View v) {
-
- pager.setCurrentItem(i);
- }
- });
- CheatSheet.setup(tab, string);
-
- this.addView(tab);
- }
-
- public void setOnPageChangeListener(OnPageChangeListener listener) {
- this.delegatePageListener = listener;
- }
-
-
-}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..a75fc81
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,19 @@
+// 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:0.12.+'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/extras/Thumbs.db b/extras/Thumbs.db
deleted file mode 100644
index 314a885..0000000
Binary files a/extras/Thumbs.db and /dev/null differ
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..5d08ba7
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Settings specified in this file will override any Gradle settings
+# configured through the IDE.
+
+# 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/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..1e61d1f
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/gradlew b/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,164 @@
+#!/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/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@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/library/.gitignore b/library/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/library/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/library/build.gradle b/library/build.gradle
new file mode 100644
index 0000000..ed3202a
--- /dev/null
+++ b/library/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'com.android.library'
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.mirko.tbv"
+ minSdkVersion 14
+ targetSdkVersion 19
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile 'com.android.support:support-v4:19.1.0'
+ compile 'com.android.support:support-annotations:19.1.0'
+}
diff --git a/TabBarViewLibrary/proguard-project.txt b/library/proguard-rules.pro
similarity index 62%
rename from TabBarViewLibrary/proguard-project.txt
rename to library/proguard-rules.pro
index f2fe155..5daa39e 100644
--- a/TabBarViewLibrary/proguard-project.txt
+++ b/library/proguard-rules.pro
@@ -1,11 +1,8 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
+# in /Users/plackemacher/Android/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
diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..883020b
--- /dev/null
+++ b/library/src/main/AndroidManifest.xml
@@ -0,0 +1,4 @@
+
+
+
diff --git a/TabBarViewLibrary/src/com/mirko/tbv/CheatSheet.java b/library/src/main/java/com/mirko/tbv/CheatSheet.java
similarity index 97%
rename from TabBarViewLibrary/src/com/mirko/tbv/CheatSheet.java
rename to library/src/main/java/com/mirko/tbv/CheatSheet.java
index e0713c9..5224d26 100644
--- a/TabBarViewLibrary/src/com/mirko/tbv/CheatSheet.java
+++ b/library/src/main/java/com/mirko/tbv/CheatSheet.java
@@ -24,7 +24,7 @@ public class CheatSheet {
/**
* Sets up a cheat sheet (tooltip) for the given view by setting its {@link
- * android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link Toast} with
+ * android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link android.widget.Toast} with
* the view's {@link android.view.View#getContentDescription() content description} will be
* shown either above (default) or below the view (if there isn't room above it).
*
@@ -41,7 +41,7 @@ public boolean onLongClick(View view) {
/**
* Sets up a cheat sheet (tooltip) for the given view by setting its {@link
- * android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link Toast} with
+ * android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link android.widget.Toast} with
* the given text will be shown either above (default) or below the view (if there isn't room
* above it).
*
@@ -59,7 +59,7 @@ public boolean onLongClick(View view) {
/**
* Sets up a cheat sheet (tooltip) for the given view by setting its {@link
- * android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link Toast} with
+ * android.view.View.OnLongClickListener}. When the view is long-pressed, a {@link android.widget.Toast} with
* the given text will be shown either above (default) or below the view (if there isn't room
* above it).
*
diff --git a/library/src/main/java/com/mirko/tbv/TabBarView.java b/library/src/main/java/com/mirko/tbv/TabBarView.java
new file mode 100644
index 0000000..25bc552
--- /dev/null
+++ b/library/src/main/java/com/mirko/tbv/TabBarView.java
@@ -0,0 +1,217 @@
+package com.mirko.tbv;
+
+import android.content.Context;
+import android.graphics.Canvas;
+import android.graphics.Color;
+import android.graphics.Paint;
+import android.os.Build;
+import android.support.annotation.DrawableRes;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v4.view.ViewPager.OnPageChangeListener;
+import android.util.AttributeSet;
+import android.view.View;
+import android.view.ViewTreeObserver.OnGlobalLayoutListener;
+import android.widget.LinearLayout;
+
+public class TabBarView extends LinearLayout {
+ public interface IconTabProvider {
+ @DrawableRes public int getPageIconResId(int position);
+ }
+
+ private static final int STRIP_HEIGHT = 6;
+
+ private final Paint mPaint;
+ private int mStripHeight;
+ private float mOffset = 0f;
+ private static int mSelectedTab = 0;
+ private ViewPager mViewPager;
+ private int mTabCount;
+ private final PageListener mPageListener = new PageListener();
+ private OnPageChangeListener mOnPageChangeListener;
+
+ public TabBarView(Context context) {
+ this(context, null);
+ }
+
+ public TabBarView(Context context, AttributeSet attrs) {
+ this(context, attrs, android.R.attr.actionBarTabBarStyle);
+ }
+
+ public TabBarView(Context context, AttributeSet attrs, int defStyle) {
+ super(context, attrs, defStyle);
+
+ setWillNotDraw(false);
+
+ mPaint = new Paint();
+ mPaint.setColor(Color.WHITE);
+ mPaint.setAntiAlias(true);
+
+ mStripHeight = (int)(STRIP_HEIGHT * getResources().getDisplayMetrics().density + .5f);
+ }
+
+ public void setStripColor(int color) {
+ if (mPaint.getColor() != color) {
+ mPaint.setColor(color);
+ invalidate();
+ }
+ }
+
+ public void setStripHeight(int height) {
+ if (mStripHeight != height) {
+ mStripHeight = height;
+ invalidate();
+ }
+ }
+
+ public void setSelectedTab(int tabIndex) {
+ if (tabIndex < 0) {
+ tabIndex = 0;
+ }
+ final int childCount = getChildCount();
+ if (tabIndex >= childCount) {
+ tabIndex = childCount - 1;
+ }
+ if (mSelectedTab != tabIndex) {
+ mSelectedTab = tabIndex;
+ invalidate();
+ }
+ }
+
+ public void setOffset(int position, float offset) {
+ if (mOffset != offset) {
+ mOffset = offset;
+ invalidate();
+ }
+ }
+
+ @Override
+ protected void onDraw(Canvas canvas) {
+ super.onDraw(canvas);
+ // Draw the strip manually
+ View child = getChildAt(mSelectedTab);
+ int height = getHeight();
+ if (child != null) {
+ float left = child.getLeft();
+ float right = child.getRight();
+ if (mOffset > 0f && mSelectedTab < mTabCount - 1) {
+ View nextChild = getChildAt(mSelectedTab + 1);
+ if (nextChild != null) {
+ final float nextTabLeft = nextChild.getLeft();
+ final float nextTabRight = nextChild.getRight();
+ left = (mOffset * nextTabLeft + (1f - mOffset) * left);
+ right = (mOffset * nextTabRight + (1f - mOffset) * right);
+ }
+ }
+ canvas.drawRect(left, height - mStripHeight, right, height, mPaint);
+ }
+ }
+
+ public void setViewPager(ViewPager pager) {
+ this.mViewPager = pager;
+
+ if (pager.getAdapter() == null) {
+ throw new IllegalStateException("ViewPager does not have adapter instance.");
+ }
+
+ pager.setOnPageChangeListener(mPageListener);
+
+ notifyDataSetChanged();
+ }
+
+ private class PageListener implements OnPageChangeListener {
+
+ @Override
+ public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
+ mSelectedTab = position;
+ mOffset = positionOffset;
+
+ invalidate();
+
+ if (mOnPageChangeListener != null) {
+ mOnPageChangeListener.onPageScrolled(position, positionOffset, positionOffsetPixels);
+ }
+ }
+
+ @Override
+ public void onPageScrollStateChanged(int state) {
+ if (mOnPageChangeListener != null) {
+ mOnPageChangeListener.onPageScrollStateChanged(state);
+ }
+ }
+
+ @Override
+ public void onPageSelected(int position) {
+ if (mOnPageChangeListener != null) {
+ mOnPageChangeListener.onPageSelected(position);
+ }
+ }
+ }
+
+ public void notifyDataSetChanged() {
+ removeAllViews();
+
+ mTabCount = mViewPager.getAdapter().getCount();
+
+ for (int i = 0; i < mTabCount; i++) {
+ PagerAdapter pagerAdapter = mViewPager.getAdapter();
+ CharSequence title = pagerAdapter.getPageTitle(i);
+
+ int iconResId = 0;
+ if(pagerAdapter instanceof IconTabProvider) {
+ iconResId = ((IconTabProvider)pagerAdapter).getPageIconResId(i);
+ }
+
+ if (getResources().getConfiguration().orientation == 1) {
+ addTabViewPortrait(i, title, iconResId);
+ } else {
+ addTabViewLandscape(i, title, iconResId);
+ }
+ }
+
+ getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {
+ @Override
+ public void onGlobalLayout() {
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
+ getViewTreeObserver().removeOnGlobalLayoutListener(this);
+ } else {
+ getViewTreeObserver().removeGlobalOnLayoutListener(this);
+ }
+
+ mSelectedTab = mViewPager.getCurrentItem();
+ }
+ });
+ }
+
+ private void addTabViewLandscape(final int i, CharSequence title, @DrawableRes int pageIconResId) {
+ TabView tab = new TabView(getContext());
+ tab.setText(title, pageIconResId);
+ tab.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ mViewPager.setCurrentItem(i);
+ }
+ });
+
+ this.addView(tab);
+ }
+
+
+ private void addTabViewPortrait(final int i, CharSequence title, @DrawableRes int pageIconResId) {
+ TabView tab = new TabView(getContext());
+ tab.setIcon(pageIconResId);
+ tab.setOnClickListener(new OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ mViewPager.setCurrentItem(i);
+ }
+ });
+ if(title != null) CheatSheet.setup(tab, title);
+
+ this.addView(tab);
+ }
+
+ public void setOnPageChangeListener(OnPageChangeListener listener) {
+ this.mOnPageChangeListener = listener;
+ }
+}
\ No newline at end of file
diff --git a/TabBarViewLibrary/src/com/mirko/tbv/TabView.java b/library/src/main/java/com/mirko/tbv/TabView.java
similarity index 56%
rename from TabBarViewLibrary/src/com/mirko/tbv/TabView.java
rename to library/src/main/java/com/mirko/tbv/TabView.java
index ae84a9f..a69ee4b 100644
--- a/TabBarViewLibrary/src/com/mirko/tbv/TabView.java
+++ b/library/src/main/java/com/mirko/tbv/TabView.java
@@ -1,8 +1,9 @@
package com.mirko.tbv;
import android.content.Context;
-import android.graphics.Color;
import android.graphics.drawable.Drawable;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.StringRes;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.Gravity;
@@ -21,7 +22,7 @@ public TabView(Context context) {
this(context, null);
}
- public TabView(Context context, AttributeSet attrs) {
+ public TabView(Context context, AttributeSet attrs) {
this(context, attrs, android.R.attr.actionBarTabStyle);
}
@@ -30,11 +31,9 @@ public TabView(Context context, AttributeSet attrs, int defStyle) {
TypedValue outValue = new TypedValue();
context.getTheme().resolveAttribute(android.R.attr.actionBarTabTextStyle, outValue, true);
+ int textStyle = outValue.data;
- int txtstyle = outValue.data;
-
- int pad = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8, getResources()
- .getDisplayMetrics());
+ int padding = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8, getResources().getDisplayMetrics());
mImageView = new ImageView(context);
mImageView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT));
@@ -43,35 +42,30 @@ public TabView(Context context, AttributeSet attrs, int defStyle) {
mTextView = new TextView(context);
mTextView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
mTextView.setGravity(Gravity.CENTER);
- mTextView.setCompoundDrawablePadding(pad);
- mTextView.setTextAppearance(context, txtstyle);;
-
-
- this.addView(mImageView);
- this.addView(mTextView);
- this.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
+ mTextView.setCompoundDrawablePadding(padding);
+ mTextView.setTextAppearance(context, textStyle);
+
+ addView(mImageView);
+ addView(mTextView);
+ setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
}
- public void setIcon(int resId) {
- setIcon(getContext().getResources().getDrawable(resId));
+ public void setIcon(@DrawableRes int resId) {
+ setIcon(getResources().getDrawable(resId));
}
public void setIcon(Drawable icon) {
- if (icon != null) {
- mImageView.setVisibility(View.VISIBLE);
- mImageView.setImageDrawable(icon);
- } else {
- mImageView.setImageResource(View.GONE);
- }
+ mImageView.setVisibility(icon != null ? View.VISIBLE : View.GONE);
+ mImageView.setImageDrawable(icon);
}
- public void setText(int resId, int ico) {
- setText(getContext().getString(resId), ico);
+ public void setText(@StringRes int textId, @DrawableRes int drawableId) {
+ setText(getContext().getString(textId), drawableId);
}
- public void setText(CharSequence text, int ico) {
+ public void setText(CharSequence text, @DrawableRes int drawableId) {
mTextView.setText(text);
- mTextView.setCompoundDrawablesWithIntrinsicBounds(ico, 0, 0, 0);;
+ mTextView.setCompoundDrawablesWithIntrinsicBounds(drawableId, 0, 0, 0);
}
}
\ No newline at end of file
diff --git a/sample/.gitignore b/sample/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/sample/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/sample/build.gradle b/sample/build.gradle
new file mode 100644
index 0000000..b6df952
--- /dev/null
+++ b/sample/build.gradle
@@ -0,0 +1,27 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "20.0.0"
+
+ defaultConfig {
+ applicationId "com.mirko.tabbarview"
+ minSdkVersion 14
+ targetSdkVersion 19
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ runProguard false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile 'com.android.support:support-v4:19.1.0'
+ compile 'com.android.support:support-v13:19.1.0'
+
+ compile project(':library')
+}
diff --git a/Demo/proguard-project.txt b/sample/proguard-rules.pro
similarity index 62%
rename from Demo/proguard-project.txt
rename to sample/proguard-rules.pro
index f2fe155..5daa39e 100644
--- a/Demo/proguard-project.txt
+++ b/sample/proguard-rules.pro
@@ -1,11 +1,8 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
+# in /Users/plackemacher/Android/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
diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..e174dd0
--- /dev/null
+++ b/sample/src/main/AndroidManifest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample/src/main/java/com/mirko/tbv/demo/MainActivity.java b/sample/src/main/java/com/mirko/tbv/demo/MainActivity.java
new file mode 100644
index 0000000..0a84d41
--- /dev/null
+++ b/sample/src/main/java/com/mirko/tbv/demo/MainActivity.java
@@ -0,0 +1,160 @@
+package com.mirko.tbv.demo;
+
+import android.app.ActionBar;
+import android.app.Activity;
+import android.app.Fragment;
+import android.app.FragmentManager;
+import android.content.Context;
+import android.os.Bundle;
+import android.support.v13.app.FragmentPagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.TextView;
+
+import com.mirko.tbv.TabBarView;
+import com.mirko.tbv.TabBarView.IconTabProvider;
+
+import java.util.Locale;
+
+public class MainActivity extends Activity {
+
+ /**
+ * The {@link android.support.v4.view.PagerAdapter} that will provide
+ * fragments for each of the sections. We use a {@link FragmentPagerAdapter}
+ * derivative, which will keep every loaded fragment in memory. If this
+ * becomes too memory intensive, it may be best to switch to a
+ * {@link android.support.v13.app.FragmentStatePagerAdapter}.
+ */
+ SectionsPagerAdapter mSectionsPagerAdapter;
+
+ /**
+ * The {@link ViewPager} that will host the section contents.
+ */
+ ViewPager mViewPager;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ LayoutInflater inflater = (LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+
+ View v = inflater.inflate(R.layout.custom_ab, null);
+ TabBarView tabBarView = (TabBarView)v.findViewById(R.id.tab_bar);
+
+ getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
+ getActionBar().setCustomView(v);
+ // Create the adapter that will return a fragment for each of the three
+ // primary sections of the activity.
+ mSectionsPagerAdapter = new SectionsPagerAdapter(getFragmentManager());
+
+ // Set up the ViewPager with the sections adapter.
+ mViewPager = (ViewPager)findViewById(R.id.pager);
+ mViewPager.setAdapter(mSectionsPagerAdapter);
+
+ tabBarView.setViewPager(mViewPager);
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.menu.main, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ int id = item.getItemId();
+ if (id == R.id.action_settings) {
+ return true;
+ }
+ return super.onOptionsItemSelected(item);
+ }
+
+ /**
+ * A {@link FragmentPagerAdapter} that returns a fragment corresponding to
+ * one of the sections/tabs/pages.
+ */
+ public class SectionsPagerAdapter extends FragmentPagerAdapter implements IconTabProvider {
+
+ private final int[] mTabIcons = { R.drawable.ic_tab1, R.drawable.ic_tab2, R.drawable.ic_tab3, };
+
+ public SectionsPagerAdapter(FragmentManager fm) {
+ super(fm);
+ }
+
+ @Override
+ public Fragment getItem(int position) {
+ // getItem is called to instantiate the fragment for the given page.
+ // Return a PlaceholderFragment (defined as a static inner class
+ // below).
+ return PlaceholderFragment.newInstance(position + 1);
+ }
+
+ @Override
+ public int getCount() {
+ // Show 3 total pages.
+ return mTabIcons.length;
+ }
+
+ @Override
+ public int getPageIconResId(int position) {
+ return mTabIcons[position];
+ }
+
+ @Override
+ public CharSequence getPageTitle(int position) {
+ Locale l = Locale.getDefault();
+ switch (position) {
+ case 0:
+ return getString(R.string.title_section1).toUpperCase(l);
+ case 1:
+ return getString(R.string.title_section2).toUpperCase(l);
+ case 2:
+ return getString(R.string.title_section3).toUpperCase(l);
+ }
+ return null;
+ }
+ }
+
+ /**
+ * A placeholder fragment containing a simple view.
+ */
+ public static class PlaceholderFragment extends Fragment {
+ /**
+ * The fragment argument representing the section number for this
+ * fragment.
+ */
+ private static final String ARG_SECTION_NUMBER = "section_number";
+
+ /**
+ * Returns a new instance of this fragment for the given section number.
+ */
+ public static PlaceholderFragment newInstance(int sectionNumber) {
+ PlaceholderFragment fragment = new PlaceholderFragment();
+ Bundle args = new Bundle();
+ args.putInt(ARG_SECTION_NUMBER, sectionNumber);
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ public PlaceholderFragment() {
+ }
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View rootView = inflater.inflate(R.layout.fragment_main, container, false);
+ TextView textView = (TextView)rootView.findViewById(R.id.section_label);
+ textView.setText(Integer.toString(getArguments().getInt(ARG_SECTION_NUMBER)));
+ return rootView;
+ }
+ }
+
+}
diff --git a/Demo/res/drawable-hdpi/ic_launcher.png b/sample/src/main/res/drawable-hdpi/ic_launcher.png
similarity index 100%
rename from Demo/res/drawable-hdpi/ic_launcher.png
rename to sample/src/main/res/drawable-hdpi/ic_launcher.png
diff --git a/Demo/res/drawable-hdpi/ic_tab1.png b/sample/src/main/res/drawable-hdpi/ic_tab1.png
similarity index 100%
rename from Demo/res/drawable-hdpi/ic_tab1.png
rename to sample/src/main/res/drawable-hdpi/ic_tab1.png
diff --git a/Demo/res/drawable-hdpi/ic_tab2.png b/sample/src/main/res/drawable-hdpi/ic_tab2.png
similarity index 100%
rename from Demo/res/drawable-hdpi/ic_tab2.png
rename to sample/src/main/res/drawable-hdpi/ic_tab2.png
diff --git a/Demo/res/drawable-hdpi/ic_tab3.png b/sample/src/main/res/drawable-hdpi/ic_tab3.png
similarity index 100%
rename from Demo/res/drawable-hdpi/ic_tab3.png
rename to sample/src/main/res/drawable-hdpi/ic_tab3.png
diff --git a/Demo/res/drawable-mdpi/ic_launcher.png b/sample/src/main/res/drawable-mdpi/ic_launcher.png
similarity index 100%
rename from Demo/res/drawable-mdpi/ic_launcher.png
rename to sample/src/main/res/drawable-mdpi/ic_launcher.png
diff --git a/Demo/res/drawable-mdpi/ic_tab1.png b/sample/src/main/res/drawable-mdpi/ic_tab1.png
similarity index 100%
rename from Demo/res/drawable-mdpi/ic_tab1.png
rename to sample/src/main/res/drawable-mdpi/ic_tab1.png
diff --git a/Demo/res/drawable-mdpi/ic_tab2.png b/sample/src/main/res/drawable-mdpi/ic_tab2.png
similarity index 100%
rename from Demo/res/drawable-mdpi/ic_tab2.png
rename to sample/src/main/res/drawable-mdpi/ic_tab2.png
diff --git a/Demo/res/drawable-mdpi/ic_tab3.png b/sample/src/main/res/drawable-mdpi/ic_tab3.png
similarity index 100%
rename from Demo/res/drawable-mdpi/ic_tab3.png
rename to sample/src/main/res/drawable-mdpi/ic_tab3.png
diff --git a/Demo/res/drawable-xhdpi/ic_launcher.png b/sample/src/main/res/drawable-xhdpi/ic_launcher.png
similarity index 100%
rename from Demo/res/drawable-xhdpi/ic_launcher.png
rename to sample/src/main/res/drawable-xhdpi/ic_launcher.png
diff --git a/Demo/res/drawable-xhdpi/ic_tab1.png b/sample/src/main/res/drawable-xhdpi/ic_tab1.png
similarity index 100%
rename from Demo/res/drawable-xhdpi/ic_tab1.png
rename to sample/src/main/res/drawable-xhdpi/ic_tab1.png
diff --git a/Demo/res/drawable-xhdpi/ic_tab2.png b/sample/src/main/res/drawable-xhdpi/ic_tab2.png
similarity index 100%
rename from Demo/res/drawable-xhdpi/ic_tab2.png
rename to sample/src/main/res/drawable-xhdpi/ic_tab2.png
diff --git a/Demo/res/drawable-xhdpi/ic_tab3.png b/sample/src/main/res/drawable-xhdpi/ic_tab3.png
similarity index 100%
rename from Demo/res/drawable-xhdpi/ic_tab3.png
rename to sample/src/main/res/drawable-xhdpi/ic_tab3.png
diff --git a/Demo/res/drawable-xxhdpi/ic_launcher.png b/sample/src/main/res/drawable-xxhdpi/ic_launcher.png
similarity index 100%
rename from Demo/res/drawable-xxhdpi/ic_launcher.png
rename to sample/src/main/res/drawable-xxhdpi/ic_launcher.png
diff --git a/Demo/res/drawable-xxhdpi/ic_tab1.png b/sample/src/main/res/drawable-xxhdpi/ic_tab1.png
similarity index 100%
rename from Demo/res/drawable-xxhdpi/ic_tab1.png
rename to sample/src/main/res/drawable-xxhdpi/ic_tab1.png
diff --git a/Demo/res/drawable-xxhdpi/ic_tab2.png b/sample/src/main/res/drawable-xxhdpi/ic_tab2.png
similarity index 100%
rename from Demo/res/drawable-xxhdpi/ic_tab2.png
rename to sample/src/main/res/drawable-xxhdpi/ic_tab2.png
diff --git a/Demo/res/drawable-xxhdpi/ic_tab3.png b/sample/src/main/res/drawable-xxhdpi/ic_tab3.png
similarity index 100%
rename from Demo/res/drawable-xxhdpi/ic_tab3.png
rename to sample/src/main/res/drawable-xxhdpi/ic_tab3.png
diff --git a/sample/src/main/res/layout/activity_main.xml b/sample/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..6d22169
--- /dev/null
+++ b/sample/src/main/res/layout/activity_main.xml
@@ -0,0 +1,7 @@
+
+
diff --git a/sample/src/main/res/layout/custom_ab.xml b/sample/src/main/res/layout/custom_ab.xml
new file mode 100644
index 0000000..d95818f
--- /dev/null
+++ b/sample/src/main/res/layout/custom_ab.xml
@@ -0,0 +1,7 @@
+
+
+
\ No newline at end of file
diff --git a/sample/src/main/res/layout/fragment_main.xml b/sample/src/main/res/layout/fragment_main.xml
new file mode 100644
index 0000000..d885680
--- /dev/null
+++ b/sample/src/main/res/layout/fragment_main.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
diff --git a/sample/src/main/res/menu/main.xml b/sample/src/main/res/menu/main.xml
new file mode 100644
index 0000000..b256fb9
--- /dev/null
+++ b/sample/src/main/res/menu/main.xml
@@ -0,0 +1,11 @@
+
diff --git a/sample/src/main/res/values-w820dp/dimens.xml b/sample/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..7bef3f2
--- /dev/null
+++ b/sample/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,10 @@
+
+
+
+ 64dp
+
+
diff --git a/sample/src/main/res/values/dimens.xml b/sample/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..3c6cff8
--- /dev/null
+++ b/sample/src/main/res/values/dimens.xml
@@ -0,0 +1,7 @@
+
+
+
+ 16dp
+ 16dp
+
+
diff --git a/sample/src/main/res/values/strings.xml b/sample/src/main/res/values/strings.xml
new file mode 100644
index 0000000..a317211
--- /dev/null
+++ b/sample/src/main/res/values/strings.xml
@@ -0,0 +1,10 @@
+
+
+
+ Demo
+ Section 1
+ Section 2
+ Section 3
+ Settings
+
+
diff --git a/sample/src/main/res/values/styles.xml b/sample/src/main/res/values/styles.xml
new file mode 100644
index 0000000..e931f36
--- /dev/null
+++ b/sample/src/main/res/values/styles.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..52baf7e
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':sample', ':library'