├── samples ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ └── arrays.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_menu_myplaces.png │ │ │ │ ├── ic_menu_emoticons.png │ │ │ │ ├── ic_menu_friendslist.png │ │ │ │ ├── ic_menu_start_conversation.png │ │ │ │ ├── skin_tab_icon_contact_normal.png │ │ │ │ ├── skin_tab_icon_plugin_normal.png │ │ │ │ ├── skin_tab_icon_contact_selected.png │ │ │ │ ├── skin_tab_icon_plugin_selected.png │ │ │ │ ├── skin_tab_icon_conversation_normal.png │ │ │ │ └── skin_tab_icon_conversation_selected.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable │ │ │ │ └── tabbg.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ ├── activity_tab_indicator.xml │ │ │ │ ├── activity_tabpage_indicator.xml │ │ │ │ └── activity_tabpage_indicator_ex.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── kevin │ │ │ └── tabindicator │ │ │ └── samples │ │ │ ├── TabFragment.java │ │ │ ├── LauncherActivity.java │ │ │ ├── TabIndicatorActivity.java │ │ │ ├── TabPageIndicatorActivity.java │ │ │ └── TabPageIndicatorExActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── kevin │ │ │ └── tabindicator │ │ │ └── samples │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── kevin │ │ └── tabindicator │ │ └── samples │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── tabindicator ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ └── update_hint.png │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ └── attrs.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── kevin │ │ │ └── tabindicator │ │ │ ├── internal │ │ │ ├── ITabView.java │ │ │ ├── TabPageIndicatorBase.java │ │ │ ├── TabViewBase.java │ │ │ └── TabIndicatorBase.java │ │ │ ├── TabPageIndicatorEx.java │ │ │ ├── TabIndicator.java │ │ │ ├── TabPageIndicator.java │ │ │ ├── TabView.java │ │ │ ├── TabPageViewEx.java │ │ │ └── TabPageView.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── kevin │ │ │ └── tabindicator │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── kevin │ │ └── tabindicator │ │ └── ApplicationTest.java ├── project.properties ├── build.gradle ├── proguard-rules.pro └── bintrayUpload.gradle ├── settings.gradle ├── tab_indicator_sample.gif ├── tab_page_indicator_sample.gif ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── tab_page_indicator_ex_sample.gif ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README-zh.md ├── README.md └── gradlew /samples/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /tabindicator/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':tabindicator', ':samples' 2 | -------------------------------------------------------------------------------- /tab_indicator_sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/tab_indicator_sample.gif -------------------------------------------------------------------------------- /samples/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Samples 3 | 4 | -------------------------------------------------------------------------------- /tab_page_indicator_sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/tab_page_indicator_sample.gif -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /tab_page_indicator_ex_sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/tab_page_indicator_ex_sample.gif -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /tabindicator/src/main/res/drawable/update_hint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/tabindicator/src/main/res/drawable/update_hint.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/ic_menu_myplaces.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/ic_menu_myplaces.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/ic_menu_emoticons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/ic_menu_emoticons.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/ic_menu_friendslist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/ic_menu_friendslist.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/ic_menu_start_conversation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/ic_menu_start_conversation.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/skin_tab_icon_contact_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/skin_tab_icon_contact_normal.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/skin_tab_icon_plugin_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/skin_tab_icon_plugin_normal.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/skin_tab_icon_contact_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/skin_tab_icon_contact_selected.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/skin_tab_icon_plugin_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/skin_tab_icon_plugin_selected.png -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/skin_tab_icon_conversation_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/skin_tab_icon_conversation_normal.png -------------------------------------------------------------------------------- /tabindicator/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /samples/src/main/res/mipmap-hdpi/skin_tab_icon_conversation_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WenkaiZhou/Android-TabIndicator/HEAD/samples/src/main/res/mipmap-hdpi/skin_tab_icon_conversation_selected.png -------------------------------------------------------------------------------- /samples/src/main/res/drawable/tabbg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tabindicator/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FF45C01A 4 | #FF555555 5 | 6 | -------------------------------------------------------------------------------- /samples/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /samples/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /tabindicator/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12sp 4 | 4dp 5 | 12dp 6 | 7 | 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | 10 | /.idea 11 | /.gradle 12 | /build 13 | /local.properties 14 | /tabindicator/build 15 | /samples/build 16 | /samples/samples.iml 17 | /TabIndicator.iml 18 | /tabindicator/local.properties -------------------------------------------------------------------------------- /tabindicator/project.properties: -------------------------------------------------------------------------------- 1 | #project 2 | project.name=TabIndicator 3 | project.groupId=com.kevin 4 | project.artifactId=tabindicator 5 | project.packaging=aar 6 | project.siteUrl=https://github.com/xuehuayous/Android-TabIndicator 7 | project.gitUrl=https://github.com/xuehuayous/Android-TabIndicator.git 8 | 9 | #javadoc 10 | javadoc.name=TabIndicator -------------------------------------------------------------------------------- /samples/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /tabindicator/src/test/java/com/kevin/tabindicator/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.kevin.tabindicator; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /samples/src/test/java/com/kevin/tabindicator/samples/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.kevin.tabindicator.samples; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /samples/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tabindicator/src/androidTest/java/com/kevin/tabindicator/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.kevin.tabindicator; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /samples/src/androidTest/java/com/kevin/tabindicator/samples/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.kevin.tabindicator.samples; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /tabindicator/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 8 9 | targetSdkVersion 23 10 | versionCode 2 11 | versionName "1.0.2" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile 'com.android.support:appcompat-v7:23.1.0' 23 | } 24 | 25 | apply from: "bintrayUpload.gradle" -------------------------------------------------------------------------------- /samples/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\studio-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /tabindicator/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\studio-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /samples/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "com.kevin.tabindicator.samples" 9 | minSdkVersion 8 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(include: ['*.jar'], dir: 'libs') 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.1.0' 26 | compile project(':tabindicator') 27 | } 28 | -------------------------------------------------------------------------------- /tabindicator/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /samples/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tabindicator/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /samples/src/main/res/values/arrays.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | "微信" 7 | "通讯录" 8 | "发现" 9 | "我" 10 | 11 | 12 | @mipmap/ic_menu_emoticons 13 | @mipmap/ic_menu_friendslist 14 | @mipmap/ic_menu_myplaces 15 | @mipmap/ic_menu_start_conversation 16 | 17 | 18 | 19 | @mipmap/skin_tab_icon_conversation_normal 20 | @mipmap/skin_tab_icon_contact_normal 21 | @mipmap/skin_tab_icon_plugin_normal 22 | 23 | 24 | 25 | @mipmap/skin_tab_icon_conversation_selected 26 | @mipmap/skin_tab_icon_contact_selected 27 | @mipmap/skin_tab_icon_plugin_selected 28 | 29 | 30 | -------------------------------------------------------------------------------- /samples/src/main/java/com/kevin/tabindicator/samples/TabFragment.java: -------------------------------------------------------------------------------- 1 | package com.kevin.tabindicator.samples; 2 | 3 | import android.graphics.Color; 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.Gravity; 7 | import android.view.LayoutInflater; 8 | import android.view.View; 9 | import android.view.ViewGroup; 10 | import android.widget.TextView; 11 | 12 | public class TabFragment extends Fragment { 13 | private String mTitle = "Default"; 14 | 15 | public TabFragment() { 16 | } 17 | 18 | @Override 19 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 20 | Bundle savedInstanceState) { 21 | if (getArguments() != null) { 22 | mTitle = getArguments().getString("title"); 23 | } 24 | 25 | TextView textView = new TextView(getActivity()); 26 | textView.setTextSize(16); 27 | textView.setPadding(0,0,0,20); 28 | textView.setBackgroundColor(Color.parseColor("#ffffffff")); 29 | textView.setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL); 30 | textView.setText(mTitle); 31 | return textView; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /samples/src/main/res/layout/activity_tab_indicator.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 15 | 16 | 20 | 21 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /samples/src/main/java/com/kevin/tabindicator/samples/LauncherActivity.java: -------------------------------------------------------------------------------- 1 | package com.kevin.tabindicator.samples; 2 | 3 | import android.app.ListActivity; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.view.View; 7 | import android.widget.ArrayAdapter; 8 | import android.widget.ListView; 9 | 10 | /** 11 | * Created by zwenkai on 2016/2/26. 12 | */ 13 | public class LauncherActivity extends ListActivity{ 14 | 15 | public static final String[] options = { "TabPageIndicatorEx", "TabPageIndicator", "TabIndicator"}; 16 | 17 | @Override 18 | protected void onCreate(Bundle savedInstanceState) { 19 | super.onCreate(savedInstanceState); 20 | setListAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, options)); 21 | } 22 | 23 | @Override 24 | protected void onListItemClick(ListView l, View v, int position, long id) { 25 | Intent intent; 26 | 27 | switch (position) { 28 | default: 29 | case 0: 30 | intent = new Intent(this, TabPageIndicatorExActivity.class); 31 | break; 32 | case 1: 33 | intent = new Intent(this, TabPageIndicatorActivity.class); 34 | break; 35 | case 2: 36 | intent = new Intent(this, TabIndicatorActivity.class); 37 | break; 38 | } 39 | 40 | startActivity(intent); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /samples/src/main/res/layout/activity_tabpage_indicator.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 |