diff --git a/.gradle/1.12/taskArtifacts/cache.properties b/.gradle/1.12/taskArtifacts/cache.properties new file mode 100644 index 000000000..234983413 --- /dev/null +++ b/.gradle/1.12/taskArtifacts/cache.properties @@ -0,0 +1 @@ +#Mon Jul 21 14:38:57 CEST 2014 diff --git a/.gradle/1.12/taskArtifacts/cache.properties.lock b/.gradle/1.12/taskArtifacts/cache.properties.lock new file mode 100644 index 000000000..08c09bd1d Binary files /dev/null and b/.gradle/1.12/taskArtifacts/cache.properties.lock differ diff --git a/.gradle/1.12/taskArtifacts/fileHashes.bin b/.gradle/1.12/taskArtifacts/fileHashes.bin new file mode 100644 index 000000000..ff69dc2f0 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/fileHashes.bin differ diff --git a/.gradle/1.12/taskArtifacts/fileSnapshots.bin b/.gradle/1.12/taskArtifacts/fileSnapshots.bin new file mode 100644 index 000000000..0a1fdf014 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/fileSnapshots.bin differ diff --git a/.gradle/1.12/taskArtifacts/outputFileStates.bin b/.gradle/1.12/taskArtifacts/outputFileStates.bin new file mode 100644 index 000000000..ffe89f030 Binary files /dev/null and b/.gradle/1.12/taskArtifacts/outputFileStates.bin differ diff --git a/.gradle/1.12/taskArtifacts/taskArtifacts.bin b/.gradle/1.12/taskArtifacts/taskArtifacts.bin new file mode 100644 index 000000000..d3abbb50c Binary files /dev/null and b/.gradle/1.12/taskArtifacts/taskArtifacts.bin differ diff --git a/CHANGELOG.md b/CHANGELOG.md index c31bba75c..9925bd84f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Change Log ========== +Version 2.4.2 *(2014-07-21)* +---------------------------- + * Gradle implementation + Version 2.4.1 *(2012-09-11)* ---------------------------- diff --git a/build.gradle b/build.gradle new file mode 100644 index 000000000..71a323df8 --- /dev/null +++ b/build.gradle @@ -0,0 +1,115 @@ +buildscript { + repositories { + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:0.12.+' + } +} + +allprojects { + repositories { + mavenCentral() + } +} + +task wrapper(type: Wrapper) { + gradleVersion = '1.12' +} + +apply plugin: 'com.android.library' +apply plugin: 'maven' +apply plugin: 'signing' + +dependencies { + // GRADLE DEPENDENCIES + // SUPPORT + compile project.ANDROID_SUPPORT_V4 +} + +android { + compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) + buildToolsVersion = project.ANDROID_BUILD_TOOLS_VERSION + + defaultConfig { + minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) + targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) + } + + buildTypes { + debug { + } + + release { + } + } + + packagingOptions { + exclude 'META-INF/DEPENDENCIES' + exclude 'META-INF/NOTICE' + exclude 'META-INF/LICENSE' + exclude 'META-INF/LICENSE.txt' + exclude 'META-INF/NOTICE.txt' + } +} + +group = 'fr.baloomba' +version = '2.4.2' + +signing { + required { has("release") && gradle.taskGraph.hasTask("uploadArchives") } + sign configurations.archives +} + +uploadArchives { + configuration = configurations.archives + repositories.mavenDeployer { + beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } + + repository(url: sonatypeRepo) { + authentication(userName: sonatypeUsername, + password: sonatypePassword) + } + + pom.project { + name 'Android-ViewPagerIndicator' + packaging 'aar' + description 'Android library for ViewPagerIndicator' + url 'https://github.com/baloomba/Android-ViewPagerIndicator' + + scm { + url 'scm:git@github.com:baloomba/Android-ViewPagerIndicator.git' + connection 'scm:git@github.com:baloomba/Android-ViewPagerIndicator.git' + developerConnection 'scm:git@github.com:baloomba/Android-ViewPagerIndicator.git' + } + + licenses { + license { + name 'Apache License Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + + developers { + developer { + id 'baloo' + name 'Clement BOULY' + email 'bouly.clement@gmail.com' + } + developer { + id 'jakewharton' + name 'Jake Wharton' + email 'jakewharton@gmail.com' + url 'http://jakewharton.com' + timezone '-5' + roles { + role 'developer' + } + } + } + } + } +} + diff --git a/build/generated/source/buildConfig/release/com/viewpagerindicator/BuildConfig.java b/build/generated/source/buildConfig/release/com/viewpagerindicator/BuildConfig.java new file mode 100644 index 000000000..2e6598c90 --- /dev/null +++ b/build/generated/source/buildConfig/release/com/viewpagerindicator/BuildConfig.java @@ -0,0 +1,13 @@ +/** + * Automatically generated file. DO NOT MODIFY + */ +package com.viewpagerindicator; + +public final class BuildConfig { + public static final boolean DEBUG = false; + public static final String PACKAGE_NAME = "com.viewpagerindicator"; + public static final String BUILD_TYPE = "release"; + public static final String FLAVOR = ""; + public static final int VERSION_CODE = 65; + public static final String VERSION_NAME = ""; +} diff --git a/build/generated/source/r/release/com/viewpagerindicator/R.java b/build/generated/source/r/release/com/viewpagerindicator/R.java new file mode 100644 index 000000000..8f06ad0c5 --- /dev/null +++ b/build/generated/source/r/release/com/viewpagerindicator/R.java @@ -0,0 +1,1159 @@ +/* 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.viewpagerindicator; + +public final class R { + public static final class attr { + /**

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int centered=0x7f010000; + /** Screen edge padding. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int clipPadding=0x7f01000b; + /** Length of the delay to fade the indicator. +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int fadeDelay=0x7f010017; + /** Length of the indicator fade to transparent. +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int fadeLength=0x7f010018; + /** Whether or not the selected indicator fades. +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int fades=0x7f010016; + /** Color of the filled circle that represents the current page. +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int fillColor=0x7f010004; + /** Color of the footer line and indicator. +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int footerColor=0x7f01000c; + /** Height of the indicator above the footer line. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int footerIndicatorHeight=0x7f01000f; + /** Style of the indicator. Default is triangle. +

Must be one of the following constant values.

+ ++++ + + + +
ConstantValueDescription
none0
triangle1
underline2
+ */ + public static int footerIndicatorStyle=0x7f01000e; + /** Left and right padding of the underline indicator. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int footerIndicatorUnderlinePadding=0x7f010010; + /** Height of the footer line. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int footerLineHeight=0x7f01000d; + /** Padding between the bottom of the title and the footer. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int footerPadding=0x7f010011; + /** Width of the gap between each indicator line. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int gapWidth=0x7f01000a; + /** Position of the line. +

Must be one of the following constant values.

+ ++++ + + +
ConstantValueDescription
bottom0
top1
+ */ + public static int linePosition=0x7f010012; + /** Width of each indicator line. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int lineWidth=0x7f010009; + /** Color of the filled circles that represents pages. +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int pageColor=0x7f010005; + /** Radius of the circles. This is also the spacing between circles. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int radius=0x7f010006; + /** Whether or not the selected item is displayed as bold. +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int selectedBold=0x7f010013; + /**

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int selectedColor=0x7f010001; + /** Whether or not the selected indicator snaps to the circles. +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int snap=0x7f010007; + /** Color of the open circles. +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int strokeColor=0x7f010008; + /**

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int strokeWidth=0x7f010002; + /** Padding between titles when bumping into each other. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int titlePadding=0x7f010014; + /** Padding between titles and the top of the View. +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int topPadding=0x7f010015; + /**

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. + */ + public static int unselectedColor=0x7f010003; + /** Style of the circle indicator. +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static int vpiCirclePageIndicatorStyle=0x7f010019; + /** Style of the icon indicator's views. +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static int vpiIconPageIndicatorStyle=0x7f01001a; + /** Style of the line indicator. +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static int vpiLinePageIndicatorStyle=0x7f01001b; + /** Style of the tab indicator's tabs. +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static int vpiTabPageIndicatorStyle=0x7f01001d; + /** Style of the title indicator. +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static int vpiTitlePageIndicatorStyle=0x7f01001c; + /** Style of the underline indicator. +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + */ + public static int vpiUnderlinePageIndicatorStyle=0x7f01001e; + } + public static final class bool { + public static int default_circle_indicator_centered=0x7f030000; + public static int default_circle_indicator_snap=0x7f030001; + public static int default_line_indicator_centered=0x7f030002; + public static int default_title_indicator_selected_bold=0x7f030003; + public static int default_underline_indicator_fades=0x7f030004; + } + public static final class color { + public static int default_circle_indicator_fill_color=0x7f040000; + public static int default_circle_indicator_page_color=0x7f040001; + public static int default_circle_indicator_stroke_color=0x7f040002; + public static int default_line_indicator_selected_color=0x7f040003; + public static int default_line_indicator_unselected_color=0x7f040004; + public static int default_title_indicator_footer_color=0x7f040005; + public static int default_title_indicator_selected_color=0x7f040006; + public static int default_title_indicator_text_color=0x7f040007; + public static int default_underline_indicator_selected_color=0x7f040008; + public static int vpi__background_holo_dark=0x7f040009; + public static int vpi__background_holo_light=0x7f04000a; + public static int vpi__bright_foreground_disabled_holo_dark=0x7f04000b; + public static int vpi__bright_foreground_disabled_holo_light=0x7f04000c; + public static int vpi__bright_foreground_holo_dark=0x7f04000d; + public static int vpi__bright_foreground_holo_light=0x7f04000e; + public static int vpi__bright_foreground_inverse_holo_dark=0x7f04000f; + public static int vpi__bright_foreground_inverse_holo_light=0x7f040010; + public static int vpi__dark_theme=0x7f040011; + public static int vpi__light_theme=0x7f040012; + } + public static final class dimen { + public static int default_circle_indicator_radius=0x7f060000; + public static int default_circle_indicator_stroke_width=0x7f060001; + public static int default_line_indicator_gap_width=0x7f060002; + public static int default_line_indicator_line_width=0x7f060003; + public static int default_line_indicator_stroke_width=0x7f060004; + public static int default_title_indicator_clip_padding=0x7f060005; + public static int default_title_indicator_footer_indicator_height=0x7f060006; + public static int default_title_indicator_footer_indicator_underline_padding=0x7f060007; + public static int default_title_indicator_footer_line_height=0x7f060008; + public static int default_title_indicator_footer_padding=0x7f060009; + public static int default_title_indicator_text_size=0x7f06000a; + public static int default_title_indicator_title_padding=0x7f06000b; + public static int default_title_indicator_top_padding=0x7f06000c; + } + public static final class drawable { + public static int vpi__tab_indicator=0x7f020000; + public static int vpi__tab_selected_focused_holo=0x7f020001; + public static int vpi__tab_selected_holo=0x7f020002; + public static int vpi__tab_selected_pressed_holo=0x7f020003; + public static int vpi__tab_unselected_focused_holo=0x7f020004; + public static int vpi__tab_unselected_holo=0x7f020005; + public static int vpi__tab_unselected_pressed_holo=0x7f020006; + } + public static final class id { + public static int bottom=0x7f050003; + public static int none=0x7f050000; + public static int top=0x7f050004; + public static int triangle=0x7f050001; + public static int underline=0x7f050002; + } + public static final class integer { + public static int default_circle_indicator_orientation=0x7f070000; + public static int default_title_indicator_footer_indicator_style=0x7f070001; + public static int default_title_indicator_line_position=0x7f070002; + public static int default_underline_indicator_fade_delay=0x7f070003; + public static int default_underline_indicator_fade_length=0x7f070004; + } + public static final class style { + public static int TextAppearance_TabPageIndicator=0x7f080000; + public static int Theme_PageIndicatorDefaults=0x7f080001; + public static int Widget=0x7f080002; + public static int Widget_IconPageIndicator=0x7f080003; + public static int Widget_TabPageIndicator=0x7f080004; + } + public static final class styleable { + /** Attributes that can be used with a CirclePageIndicator. +

Includes the following attributes:

+ + + + + + + + + + + + + +
AttributeDescription
{@link #CirclePageIndicator_android_background android:background} View background
{@link #CirclePageIndicator_android_orientation android:orientation} Orientation of the indicator.
{@link #CirclePageIndicator_centered com.viewpagerindicator:centered} Whether or not the indicators should be centered.
{@link #CirclePageIndicator_fillColor com.viewpagerindicator:fillColor} Color of the filled circle that represents the current page.
{@link #CirclePageIndicator_pageColor com.viewpagerindicator:pageColor} Color of the filled circles that represents pages.
{@link #CirclePageIndicator_radius com.viewpagerindicator:radius} Radius of the circles.
{@link #CirclePageIndicator_snap com.viewpagerindicator:snap} Whether or not the selected indicator snaps to the circles.
{@link #CirclePageIndicator_strokeColor com.viewpagerindicator:strokeColor} Color of the open circles.
{@link #CirclePageIndicator_strokeWidth com.viewpagerindicator:strokeWidth} Width of the stroke used to draw the circles.
+ @see #CirclePageIndicator_android_background + @see #CirclePageIndicator_android_orientation + @see #CirclePageIndicator_centered + @see #CirclePageIndicator_fillColor + @see #CirclePageIndicator_pageColor + @see #CirclePageIndicator_radius + @see #CirclePageIndicator_snap + @see #CirclePageIndicator_strokeColor + @see #CirclePageIndicator_strokeWidth + */ + public static final int[] CirclePageIndicator = { + 0x010100c4, 0x010100d4, 0x7f010000, 0x7f010002, + 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, + 0x7f010008 + }; + /** +

+ @attr description + View background +

This corresponds to the global attribute + resource symbol {@link android.R.attr#background}. + @attr name android:background + */ + public static final int CirclePageIndicator_android_background = 1; + /** +

+ @attr description + Orientation of the indicator. +

This corresponds to the global attribute + resource symbol {@link android.R.attr#orientation}. + @attr name android:orientation + */ + public static final int CirclePageIndicator_android_orientation = 0; + /** +

+ @attr description + Whether or not the indicators should be centered. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:centered + */ + public static final int CirclePageIndicator_centered = 2; + /** +

+ @attr description + Color of the filled circle that represents the current page. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:fillColor + */ + public static final int CirclePageIndicator_fillColor = 4; + /** +

+ @attr description + Color of the filled circles that represents pages. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:pageColor + */ + public static final int CirclePageIndicator_pageColor = 5; + /** +

+ @attr description + Radius of the circles. This is also the spacing between circles. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:radius + */ + public static final int CirclePageIndicator_radius = 6; + /** +

+ @attr description + Whether or not the selected indicator snaps to the circles. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:snap + */ + public static final int CirclePageIndicator_snap = 7; + /** +

+ @attr description + Color of the open circles. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:strokeColor + */ + public static final int CirclePageIndicator_strokeColor = 8; + /** +

+ @attr description + Width of the stroke used to draw the circles. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:strokeWidth + */ + public static final int CirclePageIndicator_strokeWidth = 3; + /** Attributes that can be used with a LinePageIndicator. +

Includes the following attributes:

+ + + + + + + + + + + +
AttributeDescription
{@link #LinePageIndicator_android_background android:background} View background
{@link #LinePageIndicator_centered com.viewpagerindicator:centered} Whether or not the indicators should be centered.
{@link #LinePageIndicator_gapWidth com.viewpagerindicator:gapWidth} Width of the gap between each indicator line.
{@link #LinePageIndicator_lineWidth com.viewpagerindicator:lineWidth} Width of each indicator line.
{@link #LinePageIndicator_selectedColor com.viewpagerindicator:selectedColor} Color of the selected line that represents the current page.
{@link #LinePageIndicator_strokeWidth com.viewpagerindicator:strokeWidth} Width of each indicator line's stroke.
{@link #LinePageIndicator_unselectedColor com.viewpagerindicator:unselectedColor} Color of the unselected lines that represent the pages.
+ @see #LinePageIndicator_android_background + @see #LinePageIndicator_centered + @see #LinePageIndicator_gapWidth + @see #LinePageIndicator_lineWidth + @see #LinePageIndicator_selectedColor + @see #LinePageIndicator_strokeWidth + @see #LinePageIndicator_unselectedColor + */ + public static final int[] LinePageIndicator = { + 0x010100d4, 0x7f010000, 0x7f010001, 0x7f010002, + 0x7f010003, 0x7f010009, 0x7f01000a + }; + /** +

+ @attr description + View background +

This corresponds to the global attribute + resource symbol {@link android.R.attr#background}. + @attr name android:background + */ + public static final int LinePageIndicator_android_background = 0; + /** +

+ @attr description + Whether or not the indicators should be centered. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:centered + */ + public static final int LinePageIndicator_centered = 1; + /** +

+ @attr description + Width of the gap between each indicator line. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:gapWidth + */ + public static final int LinePageIndicator_gapWidth = 6; + /** +

+ @attr description + Width of each indicator line. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:lineWidth + */ + public static final int LinePageIndicator_lineWidth = 5; + /** +

+ @attr description + Color of the selected line that represents the current page. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:selectedColor + */ + public static final int LinePageIndicator_selectedColor = 2; + /** +

+ @attr description + Width of each indicator line's stroke. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:strokeWidth + */ + public static final int LinePageIndicator_strokeWidth = 3; + /** +

+ @attr description + Color of the unselected lines that represent the pages. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:unselectedColor + */ + public static final int LinePageIndicator_unselectedColor = 4; + /** Attributes that can be used with a TitlePageIndicator. +

Includes the following attributes:

+ + + + + + + + + + + + + + + + + + + +
AttributeDescription
{@link #TitlePageIndicator_android_background android:background} View background
{@link #TitlePageIndicator_android_textColor android:textColor} Color of regular titles.
{@link #TitlePageIndicator_android_textSize android:textSize} Size of title text.
{@link #TitlePageIndicator_clipPadding com.viewpagerindicator:clipPadding} Screen edge padding.
{@link #TitlePageIndicator_footerColor com.viewpagerindicator:footerColor} Color of the footer line and indicator.
{@link #TitlePageIndicator_footerIndicatorHeight com.viewpagerindicator:footerIndicatorHeight} Height of the indicator above the footer line.
{@link #TitlePageIndicator_footerIndicatorStyle com.viewpagerindicator:footerIndicatorStyle} Style of the indicator.
{@link #TitlePageIndicator_footerIndicatorUnderlinePadding com.viewpagerindicator:footerIndicatorUnderlinePadding} Left and right padding of the underline indicator.
{@link #TitlePageIndicator_footerLineHeight com.viewpagerindicator:footerLineHeight} Height of the footer line.
{@link #TitlePageIndicator_footerPadding com.viewpagerindicator:footerPadding} Padding between the bottom of the title and the footer.
{@link #TitlePageIndicator_linePosition com.viewpagerindicator:linePosition} Position of the line.
{@link #TitlePageIndicator_selectedBold com.viewpagerindicator:selectedBold} Whether or not the selected item is displayed as bold.
{@link #TitlePageIndicator_selectedColor com.viewpagerindicator:selectedColor} Color of the selected title.
{@link #TitlePageIndicator_titlePadding com.viewpagerindicator:titlePadding} Padding between titles when bumping into each other.
{@link #TitlePageIndicator_topPadding com.viewpagerindicator:topPadding} Padding between titles and the top of the View.
+ @see #TitlePageIndicator_android_background + @see #TitlePageIndicator_android_textColor + @see #TitlePageIndicator_android_textSize + @see #TitlePageIndicator_clipPadding + @see #TitlePageIndicator_footerColor + @see #TitlePageIndicator_footerIndicatorHeight + @see #TitlePageIndicator_footerIndicatorStyle + @see #TitlePageIndicator_footerIndicatorUnderlinePadding + @see #TitlePageIndicator_footerLineHeight + @see #TitlePageIndicator_footerPadding + @see #TitlePageIndicator_linePosition + @see #TitlePageIndicator_selectedBold + @see #TitlePageIndicator_selectedColor + @see #TitlePageIndicator_titlePadding + @see #TitlePageIndicator_topPadding + */ + public static final int[] TitlePageIndicator = { + 0x01010095, 0x01010098, 0x010100d4, 0x7f010001, + 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, + 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, + 0x7f010013, 0x7f010014, 0x7f010015 + }; + /** +

+ @attr description + View background +

This corresponds to the global attribute + resource symbol {@link android.R.attr#background}. + @attr name android:background + */ + public static final int TitlePageIndicator_android_background = 2; + /** +

+ @attr description + Color of regular titles. +

This corresponds to the global attribute + resource symbol {@link android.R.attr#textColor}. + @attr name android:textColor + */ + public static final int TitlePageIndicator_android_textColor = 1; + /** +

+ @attr description + Size of title text. +

This corresponds to the global attribute + resource symbol {@link android.R.attr#textSize}. + @attr name android:textSize + */ + public static final int TitlePageIndicator_android_textSize = 0; + /** +

+ @attr description + Screen edge padding. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:clipPadding + */ + public static final int TitlePageIndicator_clipPadding = 4; + /** +

+ @attr description + Color of the footer line and indicator. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:footerColor + */ + public static final int TitlePageIndicator_footerColor = 5; + /** +

+ @attr description + Height of the indicator above the footer line. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:footerIndicatorHeight + */ + public static final int TitlePageIndicator_footerIndicatorHeight = 8; + /** +

+ @attr description + Style of the indicator. Default is triangle. + + +

Must be one of the following constant values.

+ ++++ + + + +
ConstantValueDescription
none0
triangle1
underline2
+

This is a private symbol. + @attr name com.viewpagerindicator:footerIndicatorStyle + */ + public static final int TitlePageIndicator_footerIndicatorStyle = 7; + /** +

+ @attr description + Left and right padding of the underline indicator. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:footerIndicatorUnderlinePadding + */ + public static final int TitlePageIndicator_footerIndicatorUnderlinePadding = 9; + /** +

+ @attr description + Height of the footer line. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:footerLineHeight + */ + public static final int TitlePageIndicator_footerLineHeight = 6; + /** +

+ @attr description + Padding between the bottom of the title and the footer. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:footerPadding + */ + public static final int TitlePageIndicator_footerPadding = 10; + /** +

+ @attr description + Position of the line. + + +

Must be one of the following constant values.

+ ++++ + + +
ConstantValueDescription
bottom0
top1
+

This is a private symbol. + @attr name com.viewpagerindicator:linePosition + */ + public static final int TitlePageIndicator_linePosition = 11; + /** +

+ @attr description + Whether or not the selected item is displayed as bold. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:selectedBold + */ + public static final int TitlePageIndicator_selectedBold = 12; + /** +

+ @attr description + Color of the selected title. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:selectedColor + */ + public static final int TitlePageIndicator_selectedColor = 3; + /** +

+ @attr description + Padding between titles when bumping into each other. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:titlePadding + */ + public static final int TitlePageIndicator_titlePadding = 13; + /** +

+ @attr description + Padding between titles and the top of the View. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:topPadding + */ + public static final int TitlePageIndicator_topPadding = 14; + /** Attributes that can be used with a UnderlinePageIndicator. +

Includes the following attributes:

+ + + + + + + + + +
AttributeDescription
{@link #UnderlinePageIndicator_android_background android:background} View background
{@link #UnderlinePageIndicator_fadeDelay com.viewpagerindicator:fadeDelay} Length of the delay to fade the indicator.
{@link #UnderlinePageIndicator_fadeLength com.viewpagerindicator:fadeLength} Length of the indicator fade to transparent.
{@link #UnderlinePageIndicator_fades com.viewpagerindicator:fades} Whether or not the selected indicator fades.
{@link #UnderlinePageIndicator_selectedColor com.viewpagerindicator:selectedColor} Color of the selected line that represents the current page.
+ @see #UnderlinePageIndicator_android_background + @see #UnderlinePageIndicator_fadeDelay + @see #UnderlinePageIndicator_fadeLength + @see #UnderlinePageIndicator_fades + @see #UnderlinePageIndicator_selectedColor + */ + public static final int[] UnderlinePageIndicator = { + 0x010100d4, 0x7f010001, 0x7f010016, 0x7f010017, + 0x7f010018 + }; + /** +

+ @attr description + View background +

This corresponds to the global attribute + resource symbol {@link android.R.attr#background}. + @attr name android:background + */ + public static final int UnderlinePageIndicator_android_background = 0; + /** +

+ @attr description + Length of the delay to fade the indicator. + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:fadeDelay + */ + public static final int UnderlinePageIndicator_fadeDelay = 3; + /** +

+ @attr description + Length of the indicator fade to transparent. + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:fadeLength + */ + public static final int UnderlinePageIndicator_fadeLength = 4; + /** +

+ @attr description + Whether or not the selected indicator fades. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:fades + */ + public static final int UnderlinePageIndicator_fades = 2; + /** +

+ @attr description + Color of the selected line that represents the current page. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

This is a private symbol. + @attr name com.viewpagerindicator:selectedColor + */ + public static final int UnderlinePageIndicator_selectedColor = 1; + /** Attributes that can be used with a ViewPagerIndicator. +

Includes the following attributes:

+ + + + + + + + + + +
AttributeDescription
{@link #ViewPagerIndicator_vpiCirclePageIndicatorStyle com.viewpagerindicator:vpiCirclePageIndicatorStyle} Style of the circle indicator.
{@link #ViewPagerIndicator_vpiIconPageIndicatorStyle com.viewpagerindicator:vpiIconPageIndicatorStyle} Style of the icon indicator's views.
{@link #ViewPagerIndicator_vpiLinePageIndicatorStyle com.viewpagerindicator:vpiLinePageIndicatorStyle} Style of the line indicator.
{@link #ViewPagerIndicator_vpiTabPageIndicatorStyle com.viewpagerindicator:vpiTabPageIndicatorStyle} Style of the tab indicator's tabs.
{@link #ViewPagerIndicator_vpiTitlePageIndicatorStyle com.viewpagerindicator:vpiTitlePageIndicatorStyle} Style of the title indicator.
{@link #ViewPagerIndicator_vpiUnderlinePageIndicatorStyle com.viewpagerindicator:vpiUnderlinePageIndicatorStyle} Style of the underline indicator.
+ @see #ViewPagerIndicator_vpiCirclePageIndicatorStyle + @see #ViewPagerIndicator_vpiIconPageIndicatorStyle + @see #ViewPagerIndicator_vpiLinePageIndicatorStyle + @see #ViewPagerIndicator_vpiTabPageIndicatorStyle + @see #ViewPagerIndicator_vpiTitlePageIndicatorStyle + @see #ViewPagerIndicator_vpiUnderlinePageIndicatorStyle + */ + public static final int[] ViewPagerIndicator = { + 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, + 0x7f01001d, 0x7f01001e + }; + /** +

+ @attr description + Style of the circle indicator. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

This is a private symbol. + @attr name com.viewpagerindicator:vpiCirclePageIndicatorStyle + */ + public static final int ViewPagerIndicator_vpiCirclePageIndicatorStyle = 0; + /** +

+ @attr description + Style of the icon indicator's views. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

This is a private symbol. + @attr name com.viewpagerindicator:vpiIconPageIndicatorStyle + */ + public static final int ViewPagerIndicator_vpiIconPageIndicatorStyle = 1; + /** +

+ @attr description + Style of the line indicator. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

This is a private symbol. + @attr name com.viewpagerindicator:vpiLinePageIndicatorStyle + */ + public static final int ViewPagerIndicator_vpiLinePageIndicatorStyle = 2; + /** +

+ @attr description + Style of the tab indicator's tabs. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

This is a private symbol. + @attr name com.viewpagerindicator:vpiTabPageIndicatorStyle + */ + public static final int ViewPagerIndicator_vpiTabPageIndicatorStyle = 4; + /** +

+ @attr description + Style of the title indicator. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

This is a private symbol. + @attr name com.viewpagerindicator:vpiTitlePageIndicatorStyle + */ + public static final int ViewPagerIndicator_vpiTitlePageIndicatorStyle = 3; + /** +

+ @attr description + Style of the underline indicator. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

This is a private symbol. + @attr name com.viewpagerindicator:vpiUnderlinePageIndicatorStyle + */ + public static final int ViewPagerIndicator_vpiUnderlinePageIndicatorStyle = 5; + }; +} diff --git a/build/intermediates/bundles/release/AndroidManifest.xml b/build/intermediates/bundles/release/AndroidManifest.xml new file mode 100644 index 000000000..de4e6a4b3 --- /dev/null +++ b/build/intermediates/bundles/release/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/build/intermediates/bundles/release/R.txt b/build/intermediates/bundles/release/R.txt new file mode 100644 index 000000000..c113f7537 --- /dev/null +++ b/build/intermediates/bundles/release/R.txt @@ -0,0 +1,137 @@ +int attr centered 0x7f010000 +int attr clipPadding 0x7f01000b +int attr fadeDelay 0x7f010017 +int attr fadeLength 0x7f010018 +int attr fades 0x7f010016 +int attr fillColor 0x7f010004 +int attr footerColor 0x7f01000c +int attr footerIndicatorHeight 0x7f01000f +int attr footerIndicatorStyle 0x7f01000e +int attr footerIndicatorUnderlinePadding 0x7f010010 +int attr footerLineHeight 0x7f01000d +int attr footerPadding 0x7f010011 +int attr gapWidth 0x7f01000a +int attr linePosition 0x7f010012 +int attr lineWidth 0x7f010009 +int attr pageColor 0x7f010005 +int attr radius 0x7f010006 +int attr selectedBold 0x7f010013 +int attr selectedColor 0x7f010001 +int attr snap 0x7f010007 +int attr strokeColor 0x7f010008 +int attr strokeWidth 0x7f010002 +int attr titlePadding 0x7f010014 +int attr topPadding 0x7f010015 +int attr unselectedColor 0x7f010003 +int attr vpiCirclePageIndicatorStyle 0x7f010019 +int attr vpiIconPageIndicatorStyle 0x7f01001a +int attr vpiLinePageIndicatorStyle 0x7f01001b +int attr vpiTabPageIndicatorStyle 0x7f01001d +int attr vpiTitlePageIndicatorStyle 0x7f01001c +int attr vpiUnderlinePageIndicatorStyle 0x7f01001e +int bool default_circle_indicator_centered 0x7f030000 +int bool default_circle_indicator_snap 0x7f030001 +int bool default_line_indicator_centered 0x7f030002 +int bool default_title_indicator_selected_bold 0x7f030003 +int bool default_underline_indicator_fades 0x7f030004 +int color default_circle_indicator_fill_color 0x7f040000 +int color default_circle_indicator_page_color 0x7f040001 +int color default_circle_indicator_stroke_color 0x7f040002 +int color default_line_indicator_selected_color 0x7f040003 +int color default_line_indicator_unselected_color 0x7f040004 +int color default_title_indicator_footer_color 0x7f040005 +int color default_title_indicator_selected_color 0x7f040006 +int color default_title_indicator_text_color 0x7f040007 +int color default_underline_indicator_selected_color 0x7f040008 +int color vpi__background_holo_dark 0x7f040009 +int color vpi__background_holo_light 0x7f04000a +int color vpi__bright_foreground_disabled_holo_dark 0x7f04000b +int color vpi__bright_foreground_disabled_holo_light 0x7f04000c +int color vpi__bright_foreground_holo_dark 0x7f04000d +int color vpi__bright_foreground_holo_light 0x7f04000e +int color vpi__bright_foreground_inverse_holo_dark 0x7f04000f +int color vpi__bright_foreground_inverse_holo_light 0x7f040010 +int color vpi__dark_theme 0x7f040011 +int color vpi__light_theme 0x7f040012 +int dimen default_circle_indicator_radius 0x7f060000 +int dimen default_circle_indicator_stroke_width 0x7f060001 +int dimen default_line_indicator_gap_width 0x7f060002 +int dimen default_line_indicator_line_width 0x7f060003 +int dimen default_line_indicator_stroke_width 0x7f060004 +int dimen default_title_indicator_clip_padding 0x7f060005 +int dimen default_title_indicator_footer_indicator_height 0x7f060006 +int dimen default_title_indicator_footer_indicator_underline_padding 0x7f060007 +int dimen default_title_indicator_footer_line_height 0x7f060008 +int dimen default_title_indicator_footer_padding 0x7f060009 +int dimen default_title_indicator_text_size 0x7f06000a +int dimen default_title_indicator_title_padding 0x7f06000b +int dimen default_title_indicator_top_padding 0x7f06000c +int drawable vpi__tab_indicator 0x7f020000 +int drawable vpi__tab_selected_focused_holo 0x7f020001 +int drawable vpi__tab_selected_holo 0x7f020002 +int drawable vpi__tab_selected_pressed_holo 0x7f020003 +int drawable vpi__tab_unselected_focused_holo 0x7f020004 +int drawable vpi__tab_unselected_holo 0x7f020005 +int drawable vpi__tab_unselected_pressed_holo 0x7f020006 +int id bottom 0x7f050003 +int id none 0x7f050000 +int id top 0x7f050004 +int id triangle 0x7f050001 +int id underline 0x7f050002 +int integer default_circle_indicator_orientation 0x7f070000 +int integer default_title_indicator_footer_indicator_style 0x7f070001 +int integer default_title_indicator_line_position 0x7f070002 +int integer default_underline_indicator_fade_delay 0x7f070003 +int integer default_underline_indicator_fade_length 0x7f070004 +int style TextAppearance_TabPageIndicator 0x7f080000 +int style Theme_PageIndicatorDefaults 0x7f080001 +int style Widget 0x7f080002 +int style Widget_IconPageIndicator 0x7f080003 +int style Widget_TabPageIndicator 0x7f080004 +int[] styleable CirclePageIndicator { 0x010100c4, 0x010100d4, 0x7f010000, 0x7f010002, 0x7f010004, 0x7f010005, 0x7f010006, 0x7f010007, 0x7f010008 } +int styleable CirclePageIndicator_android_background 1 +int styleable CirclePageIndicator_android_orientation 0 +int styleable CirclePageIndicator_centered 2 +int styleable CirclePageIndicator_fillColor 4 +int styleable CirclePageIndicator_pageColor 5 +int styleable CirclePageIndicator_radius 6 +int styleable CirclePageIndicator_snap 7 +int styleable CirclePageIndicator_strokeColor 8 +int styleable CirclePageIndicator_strokeWidth 3 +int[] styleable LinePageIndicator { 0x010100d4, 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010009, 0x7f01000a } +int styleable LinePageIndicator_android_background 0 +int styleable LinePageIndicator_centered 1 +int styleable LinePageIndicator_gapWidth 6 +int styleable LinePageIndicator_lineWidth 5 +int styleable LinePageIndicator_selectedColor 2 +int styleable LinePageIndicator_strokeWidth 3 +int styleable LinePageIndicator_unselectedColor 4 +int[] styleable TitlePageIndicator { 0x01010095, 0x01010098, 0x010100d4, 0x7f010001, 0x7f01000b, 0x7f01000c, 0x7f01000d, 0x7f01000e, 0x7f01000f, 0x7f010010, 0x7f010011, 0x7f010012, 0x7f010013, 0x7f010014, 0x7f010015 } +int styleable TitlePageIndicator_android_background 2 +int styleable TitlePageIndicator_android_textColor 1 +int styleable TitlePageIndicator_android_textSize 0 +int styleable TitlePageIndicator_clipPadding 4 +int styleable TitlePageIndicator_footerColor 5 +int styleable TitlePageIndicator_footerIndicatorHeight 8 +int styleable TitlePageIndicator_footerIndicatorStyle 7 +int styleable TitlePageIndicator_footerIndicatorUnderlinePadding 9 +int styleable TitlePageIndicator_footerLineHeight 6 +int styleable TitlePageIndicator_footerPadding 10 +int styleable TitlePageIndicator_linePosition 11 +int styleable TitlePageIndicator_selectedBold 12 +int styleable TitlePageIndicator_selectedColor 3 +int styleable TitlePageIndicator_titlePadding 13 +int styleable TitlePageIndicator_topPadding 14 +int[] styleable UnderlinePageIndicator { 0x010100d4, 0x7f010001, 0x7f010016, 0x7f010017, 0x7f010018 } +int styleable UnderlinePageIndicator_android_background 0 +int styleable UnderlinePageIndicator_fadeDelay 3 +int styleable UnderlinePageIndicator_fadeLength 4 +int styleable UnderlinePageIndicator_fades 2 +int styleable UnderlinePageIndicator_selectedColor 1 +int[] styleable ViewPagerIndicator { 0x7f010019, 0x7f01001a, 0x7f01001b, 0x7f01001c, 0x7f01001d, 0x7f01001e } +int styleable ViewPagerIndicator_vpiCirclePageIndicatorStyle 0 +int styleable ViewPagerIndicator_vpiIconPageIndicatorStyle 1 +int styleable ViewPagerIndicator_vpiLinePageIndicatorStyle 2 +int styleable ViewPagerIndicator_vpiTabPageIndicatorStyle 4 +int styleable ViewPagerIndicator_vpiTitlePageIndicatorStyle 3 +int styleable ViewPagerIndicator_vpiUnderlinePageIndicatorStyle 5 diff --git a/build/intermediates/bundles/release/classes.jar b/build/intermediates/bundles/release/classes.jar new file mode 100644 index 000000000..475a6c784 Binary files /dev/null and b/build/intermediates/bundles/release/classes.jar differ diff --git a/build/intermediates/bundles/release/res/color/vpi__dark_theme.xml b/build/intermediates/bundles/release/res/color/vpi__dark_theme.xml new file mode 100644 index 000000000..79e7b5c23 --- /dev/null +++ b/build/intermediates/bundles/release/res/color/vpi__dark_theme.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/build/intermediates/bundles/release/res/color/vpi__light_theme.xml b/build/intermediates/bundles/release/res/color/vpi__light_theme.xml new file mode 100644 index 000000000..8ac4f162d --- /dev/null +++ b/build/intermediates/bundles/release/res/color/vpi__light_theme.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/library/res/drawable-hdpi/vpi__tab_selected_focused_holo.9.png b/build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_selected_focused_holo.9.png similarity index 100% rename from library/res/drawable-hdpi/vpi__tab_selected_focused_holo.9.png rename to build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_selected_focused_holo.9.png diff --git a/library/res/drawable-hdpi/vpi__tab_selected_holo.9.png b/build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_selected_holo.9.png similarity index 100% rename from library/res/drawable-hdpi/vpi__tab_selected_holo.9.png rename to build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_selected_holo.9.png diff --git a/library/res/drawable-hdpi/vpi__tab_selected_pressed_holo.9.png b/build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_selected_pressed_holo.9.png similarity index 100% rename from library/res/drawable-hdpi/vpi__tab_selected_pressed_holo.9.png rename to build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_selected_pressed_holo.9.png diff --git a/library/res/drawable-hdpi/vpi__tab_unselected_focused_holo.9.png b/build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_unselected_focused_holo.9.png similarity index 100% rename from library/res/drawable-hdpi/vpi__tab_unselected_focused_holo.9.png rename to build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_unselected_focused_holo.9.png diff --git a/library/res/drawable-hdpi/vpi__tab_unselected_holo.9.png b/build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_unselected_holo.9.png similarity index 100% rename from library/res/drawable-hdpi/vpi__tab_unselected_holo.9.png rename to build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_unselected_holo.9.png diff --git a/library/res/drawable-hdpi/vpi__tab_unselected_pressed_holo.9.png b/build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_unselected_pressed_holo.9.png similarity index 100% rename from library/res/drawable-hdpi/vpi__tab_unselected_pressed_holo.9.png rename to build/intermediates/bundles/release/res/drawable-hdpi-v4/vpi__tab_unselected_pressed_holo.9.png diff --git a/library/res/drawable-mdpi/vpi__tab_selected_focused_holo.9.png b/build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_selected_focused_holo.9.png similarity index 100% rename from library/res/drawable-mdpi/vpi__tab_selected_focused_holo.9.png rename to build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_selected_focused_holo.9.png diff --git a/library/res/drawable-mdpi/vpi__tab_selected_holo.9.png b/build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_selected_holo.9.png similarity index 100% rename from library/res/drawable-mdpi/vpi__tab_selected_holo.9.png rename to build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_selected_holo.9.png diff --git a/library/res/drawable-mdpi/vpi__tab_selected_pressed_holo.9.png b/build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_selected_pressed_holo.9.png similarity index 100% rename from library/res/drawable-mdpi/vpi__tab_selected_pressed_holo.9.png rename to build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_selected_pressed_holo.9.png diff --git a/library/res/drawable-mdpi/vpi__tab_unselected_focused_holo.9.png b/build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_unselected_focused_holo.9.png similarity index 100% rename from library/res/drawable-mdpi/vpi__tab_unselected_focused_holo.9.png rename to build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_unselected_focused_holo.9.png diff --git a/library/res/drawable-mdpi/vpi__tab_unselected_holo.9.png b/build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_unselected_holo.9.png similarity index 100% rename from library/res/drawable-mdpi/vpi__tab_unselected_holo.9.png rename to build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_unselected_holo.9.png diff --git a/library/res/drawable-mdpi/vpi__tab_unselected_pressed_holo.9.png b/build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_unselected_pressed_holo.9.png similarity index 100% rename from library/res/drawable-mdpi/vpi__tab_unselected_pressed_holo.9.png rename to build/intermediates/bundles/release/res/drawable-mdpi-v4/vpi__tab_unselected_pressed_holo.9.png diff --git a/library/res/drawable-xhdpi/vpi__tab_selected_focused_holo.9.png b/build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_selected_focused_holo.9.png similarity index 100% rename from library/res/drawable-xhdpi/vpi__tab_selected_focused_holo.9.png rename to build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_selected_focused_holo.9.png diff --git a/library/res/drawable-xhdpi/vpi__tab_selected_holo.9.png b/build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_selected_holo.9.png similarity index 100% rename from library/res/drawable-xhdpi/vpi__tab_selected_holo.9.png rename to build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_selected_holo.9.png diff --git a/library/res/drawable-xhdpi/vpi__tab_selected_pressed_holo.9.png b/build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_selected_pressed_holo.9.png similarity index 100% rename from library/res/drawable-xhdpi/vpi__tab_selected_pressed_holo.9.png rename to build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_selected_pressed_holo.9.png diff --git a/library/res/drawable-xhdpi/vpi__tab_unselected_focused_holo.9.png b/build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_unselected_focused_holo.9.png similarity index 100% rename from library/res/drawable-xhdpi/vpi__tab_unselected_focused_holo.9.png rename to build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_unselected_focused_holo.9.png diff --git a/library/res/drawable-xhdpi/vpi__tab_unselected_holo.9.png b/build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_unselected_holo.9.png similarity index 100% rename from library/res/drawable-xhdpi/vpi__tab_unselected_holo.9.png rename to build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_unselected_holo.9.png diff --git a/library/res/drawable-xhdpi/vpi__tab_unselected_pressed_holo.9.png b/build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_unselected_pressed_holo.9.png similarity index 100% rename from library/res/drawable-xhdpi/vpi__tab_unselected_pressed_holo.9.png rename to build/intermediates/bundles/release/res/drawable-xhdpi-v4/vpi__tab_unselected_pressed_holo.9.png diff --git a/sample/res/drawable/custom_tab_indicator.xml b/build/intermediates/bundles/release/res/drawable/vpi__tab_indicator.xml similarity index 77% rename from sample/res/drawable/custom_tab_indicator.xml rename to build/intermediates/bundles/release/res/drawable/vpi__tab_indicator.xml index e7f4cf37a..cd627f21f 100644 --- a/sample/res/drawable/custom_tab_indicator.xml +++ b/build/intermediates/bundles/release/res/drawable/vpi__tab_indicator.xml @@ -16,19 +16,20 @@ - - + + - - + + - - + + - - + + + \ No newline at end of file diff --git a/build/intermediates/bundles/release/res/values/values.xml b/build/intermediates/bundles/release/res/values/values.xml new file mode 100644 index 000000000..4e7d3696e --- /dev/null +++ b/build/intermediates/bundles/release/res/values/values.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + true + false + true + true + true + + #FFFFFFFF + #00000000 + #FFDDDDDD + #FF33B5E5 + #FFBBBBBB + #FF33B5E5 + #FFFFFFFF + #BBFFFFFF + #FF33B5E5 + + + + #ff000000 + #fff3f3f3 + #ff4c4c4c + #ffb2b2b2 + @color/vpi__background_holo_light + @color/vpi__background_holo_dark + @color/vpi__bright_foreground_holo_light + @color/vpi__bright_foreground_holo_dark + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3dp + 1dp + 4dp + 12dp + 1dp + 4dp + 4dp + 20dp + 2dp + 7dp + 15dp + 5dp + 7dp + + 0 + 2 + 0 + 300 + 400 + + + + + + + + + + + + + + diff --git a/build/intermediates/incremental/aidl/release/dependency.store b/build/intermediates/incremental/aidl/release/dependency.store new file mode 100644 index 000000000..8b8400dcf Binary files /dev/null and b/build/intermediates/incremental/aidl/release/dependency.store differ diff --git a/build/intermediates/incremental/mergeAssets/release/merger.xml b/build/intermediates/incremental/mergeAssets/release/merger.xml new file mode 100644 index 000000000..289a87405 --- /dev/null +++ b/build/intermediates/incremental/mergeAssets/release/merger.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/build/intermediates/incremental/packageResources/release/merger.xml b/build/intermediates/incremental/packageResources/release/merger.xml new file mode 100644 index 000000000..6c384601c --- /dev/null +++ b/build/intermediates/incremental/packageResources/release/merger.xml @@ -0,0 +1,495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @color/vpi__background_holo_dark + + #ff4c4c4c + + @color/vpi__bright_foreground_holo_dark + + #ffb2b2b2 + + @color/vpi__bright_foreground_holo_light + + @color/vpi__background_holo_light + + #ff000000 + + #fff3f3f3 + + + + 5dp + + 1dp + + 4dp + + + +true + + + #00000000 + + + 20dp + + 3dp + + + +400 + + +0 + + +300 + + +2 + + + #FF33B5E5 + + + 4dp + + + #FF33B5E5 + + + +false + + + #FFBBBBBB + + #FFFFFFFF + + + 12dp + + 4dp + + 2dp + + + +0 + + + 15dp + + 7dp + + + #BBFFFFFF + + + +true + + + 1dp + + 7dp + + + #FFDDDDDD + + #FF33B5E5 + + + +true + + + #FFFFFFFF + + + +true + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/outputs/aar/Android-ViewPagerIndicator-2.4.2.aar b/build/outputs/aar/Android-ViewPagerIndicator-2.4.2.aar new file mode 100644 index 000000000..4ee9b79d3 Binary files /dev/null and b/build/outputs/aar/Android-ViewPagerIndicator-2.4.2.aar differ diff --git a/build/tmp/packageReleaseJar/MANIFEST.MF b/build/tmp/packageReleaseJar/MANIFEST.MF new file mode 100644 index 000000000..58630c02e --- /dev/null +++ b/build/tmp/packageReleaseJar/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 000000000..9ca492cdb --- /dev/null +++ b/gradle.properties @@ -0,0 +1,9 @@ +# GLOBAL +ANDROID_BUILD_MIN_SDK_VERSION=9 +ANDROID_BUILD_TARGET_SDK_VERSION=19 +ANDROID_BUILD_TOOLS_VERSION=19.1.0 +ANDROID_BUILD_SDK_VERSION=19 + +#LIBRARY +#SUPPORT_LIBRARY +ANDROID_SUPPORT_V4=com.android.support:support-v4:19.1.0 diff --git a/library/libs/android-support-v4.jar b/library/libs/android-support-v4.jar deleted file mode 100644 index 99e063b33..000000000 Binary files a/library/libs/android-support-v4.jar and /dev/null differ diff --git a/library/pom.xml b/library/pom.xml deleted file mode 100644 index 0360f9bae..000000000 --- a/library/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 4.0.0 - - library - Android-ViewPagerIndicator - apklib - - - com.viewpagerindicator - parent - 2.4.1 - ../pom.xml - - - - - com.google.android - android - provided - - - - com.google.android - support-v4 - - - - - src - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - true - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - ../checkstyle.xml - - - - verify - - checkstyle - - - - - - - diff --git a/library/project.properties b/library/project.properties deleted file mode 100644 index 616f300c3..000000000 --- a/library/project.properties +++ /dev/null @@ -1,12 +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 use, -# "ant.properties", and override values to adapt the script to your -# project structure. - -android.library=true -# Project target. -target=android-16 diff --git a/pom.xml b/pom.xml index 2bc576408..091b4dc59 100644 --- a/pom.xml +++ b/pom.xml @@ -20,8 +20,6 @@ 2011 - library - sample diff --git a/sample/AndroidManifest.xml b/sample/AndroidManifest.xml deleted file mode 100644 index bbcb3afbe..000000000 --- a/sample/AndroidManifest.xml +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sample/libs/android-support-v4.jar b/sample/libs/android-support-v4.jar deleted file mode 100644 index 99e063b33..000000000 Binary files a/sample/libs/android-support-v4.jar and /dev/null differ diff --git a/sample/logo.png b/sample/logo.png deleted file mode 100644 index f1eea6774..000000000 Binary files a/sample/logo.png and /dev/null differ diff --git a/sample/pom.xml b/sample/pom.xml deleted file mode 100644 index 1d09ba1ac..000000000 --- a/sample/pom.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - 4.0.0 - - sample - Android-ViewPagerIndicator Sample - apk - - - com.viewpagerindicator - parent - 2.4.1 - ../pom.xml - - - - - com.google.android - android - provided - - - - com.google.android - support-v4 - - - - com.viewpagerindicator - library - ${project.version} - apklib - - - - - src - ${project.artifactId}-unaligned - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - true - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - ../checkstyle.xml - - - - verify - - checkstyle - - - - - - - - - - release - - - performRelease - true - - - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - ${android-maven.version} - true - - - ${project.build.directory}/${project.build.finalName}.apk - ${project.build.directory}/${project.artifactId}.apk - - - - - alignApk - package - - zipalign - - - - - - - - - diff --git a/sample/project.properties b/sample/project.properties deleted file mode 100644 index 874eafdf2..000000000 --- a/sample/project.properties +++ /dev/null @@ -1,12 +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 use, -# "ant.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-16 -android.library.reference.1=../library diff --git a/sample/psd/icon_hdpi.psd b/sample/psd/icon_hdpi.psd deleted file mode 100644 index 9541eb490..000000000 Binary files a/sample/psd/icon_hdpi.psd and /dev/null differ diff --git a/sample/psd/icon_mdpi.psd b/sample/psd/icon_mdpi.psd deleted file mode 100644 index dea7733e2..000000000 Binary files a/sample/psd/icon_mdpi.psd and /dev/null differ diff --git a/sample/psd/icon_xhdpi.psd b/sample/psd/icon_xhdpi.psd deleted file mode 100644 index bceaae3f7..000000000 Binary files a/sample/psd/icon_xhdpi.psd and /dev/null differ diff --git a/sample/psd/logo.psd b/sample/psd/logo.psd deleted file mode 100644 index 9d5266441..000000000 Binary files a/sample/psd/logo.psd and /dev/null differ diff --git a/sample/psd/web.psd b/sample/psd/web.psd deleted file mode 100644 index 6e1cccedf..000000000 Binary files a/sample/psd/web.psd and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_divider.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_divider.9.png deleted file mode 100644 index 0279e17a1..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_divider.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_focused.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_focused.9.png deleted file mode 100644 index 8d36d7de7..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_focused.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_selected.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_selected.9.png deleted file mode 100644 index db329b874..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_selected.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_selected_pressed.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_selected_pressed.9.png deleted file mode 100644 index 7ea68250b..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_selected_pressed.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_unselected.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_unselected.9.png deleted file mode 100644 index 43ec872c5..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_unselected.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_unselected_focused.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_unselected_focused.9.png deleted file mode 100644 index 2162b8ba5..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_unselected_focused.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/custom_tab_indicator_unselected_pressed.9.png b/sample/res/drawable-hdpi/custom_tab_indicator_unselected_pressed.9.png deleted file mode 100644 index 38917bbb1..000000000 Binary files a/sample/res/drawable-hdpi/custom_tab_indicator_unselected_pressed.9.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/icon.png b/sample/res/drawable-hdpi/icon.png deleted file mode 100644 index 2e7d6f40e..000000000 Binary files a/sample/res/drawable-hdpi/icon.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_calendar_normal.png b/sample/res/drawable-hdpi/perm_group_calendar_normal.png deleted file mode 100644 index c0a4dfd54..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_calendar_normal.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_calendar_selected.png b/sample/res/drawable-hdpi/perm_group_calendar_selected.png deleted file mode 100644 index 51a072778..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_calendar_selected.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_camera_normal.png b/sample/res/drawable-hdpi/perm_group_camera_normal.png deleted file mode 100644 index cbc07b062..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_camera_normal.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_camera_selected.png b/sample/res/drawable-hdpi/perm_group_camera_selected.png deleted file mode 100644 index 832ce389d..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_camera_selected.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_device_alarms_normal.png b/sample/res/drawable-hdpi/perm_group_device_alarms_normal.png deleted file mode 100644 index d44b9deca..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_device_alarms_normal.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_device_alarms_selected.png b/sample/res/drawable-hdpi/perm_group_device_alarms_selected.png deleted file mode 100644 index e7e019a98..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_device_alarms_selected.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_location_normal.png b/sample/res/drawable-hdpi/perm_group_location_normal.png deleted file mode 100644 index dc2f8ef09..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_location_normal.png and /dev/null differ diff --git a/sample/res/drawable-hdpi/perm_group_location_selected.png b/sample/res/drawable-hdpi/perm_group_location_selected.png deleted file mode 100644 index 841cd1d02..000000000 Binary files a/sample/res/drawable-hdpi/perm_group_location_selected.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_divider.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_divider.9.png deleted file mode 100644 index 0279e17a1..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_divider.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_selected.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_selected.9.png deleted file mode 100644 index 3f6aaa34e..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_selected.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_selected_focused.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_selected_focused.9.png deleted file mode 100644 index 569d1640a..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_selected_focused.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_selected_pressed.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_selected_pressed.9.png deleted file mode 100644 index 7f3a8f213..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_selected_pressed.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_unselected.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_unselected.9.png deleted file mode 100644 index 9689ea1b5..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_unselected.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_unselected_focused.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_unselected_focused.9.png deleted file mode 100644 index 88759badd..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_unselected_focused.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/custom_tab_indicator_unselected_pressed.9.png b/sample/res/drawable-mdpi/custom_tab_indicator_unselected_pressed.9.png deleted file mode 100644 index defa52ff6..000000000 Binary files a/sample/res/drawable-mdpi/custom_tab_indicator_unselected_pressed.9.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/icon.png b/sample/res/drawable-mdpi/icon.png deleted file mode 100644 index e51fe16b6..000000000 Binary files a/sample/res/drawable-mdpi/icon.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_calendar_normal.png b/sample/res/drawable-mdpi/perm_group_calendar_normal.png deleted file mode 100644 index 5905973ba..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_calendar_normal.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_calendar_selected.png b/sample/res/drawable-mdpi/perm_group_calendar_selected.png deleted file mode 100644 index cfa186e00..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_calendar_selected.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_camera_normal.png b/sample/res/drawable-mdpi/perm_group_camera_normal.png deleted file mode 100644 index be1c9e69f..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_camera_normal.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_camera_selected.png b/sample/res/drawable-mdpi/perm_group_camera_selected.png deleted file mode 100644 index 5f3005f2e..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_camera_selected.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_device_alarms_normal.png b/sample/res/drawable-mdpi/perm_group_device_alarms_normal.png deleted file mode 100644 index 48d6d6a4f..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_device_alarms_normal.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_device_alarms_selected.png b/sample/res/drawable-mdpi/perm_group_device_alarms_selected.png deleted file mode 100644 index 50720a28f..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_device_alarms_selected.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_location_normal.png b/sample/res/drawable-mdpi/perm_group_location_normal.png deleted file mode 100644 index e79ec258d..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_location_normal.png and /dev/null differ diff --git a/sample/res/drawable-mdpi/perm_group_location_selected.png b/sample/res/drawable-mdpi/perm_group_location_selected.png deleted file mode 100644 index beba8c5a8..000000000 Binary files a/sample/res/drawable-mdpi/perm_group_location_selected.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_divider.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_divider.9.png deleted file mode 100644 index 65061c0f4..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_divider.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_selected.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_selected.9.png deleted file mode 100644 index ec20886b3..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_selected.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_selected_focused.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_selected_focused.9.png deleted file mode 100644 index bc6cbeb87..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_selected_focused.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_selected_pressed.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_selected_pressed.9.png deleted file mode 100644 index 791e14e44..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_selected_pressed.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_unselected.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_unselected.9.png deleted file mode 100644 index e34e41358..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_unselected.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_unselected_focused.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_unselected_focused.9.png deleted file mode 100644 index f249e5949..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_unselected_focused.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/custom_tab_indicator_unselected_pressed.9.png b/sample/res/drawable-xhdpi/custom_tab_indicator_unselected_pressed.9.png deleted file mode 100644 index d806c79be..000000000 Binary files a/sample/res/drawable-xhdpi/custom_tab_indicator_unselected_pressed.9.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/icon.png b/sample/res/drawable-xhdpi/icon.png deleted file mode 100644 index edbc1af69..000000000 Binary files a/sample/res/drawable-xhdpi/icon.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_calendar_normal.png b/sample/res/drawable-xhdpi/perm_group_calendar_normal.png deleted file mode 100644 index 3c7f2d36d..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_calendar_normal.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_calendar_selected.png b/sample/res/drawable-xhdpi/perm_group_calendar_selected.png deleted file mode 100644 index 621888a8b..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_calendar_selected.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_camera_normal.png b/sample/res/drawable-xhdpi/perm_group_camera_normal.png deleted file mode 100644 index a4545546a..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_camera_normal.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_camera_selected.png b/sample/res/drawable-xhdpi/perm_group_camera_selected.png deleted file mode 100644 index e3063d04d..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_camera_selected.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_device_alarms_normal.png b/sample/res/drawable-xhdpi/perm_group_device_alarms_normal.png deleted file mode 100644 index 1bb151cf3..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_device_alarms_normal.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_device_alarms_selected.png b/sample/res/drawable-xhdpi/perm_group_device_alarms_selected.png deleted file mode 100644 index 52f298a38..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_device_alarms_selected.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_location_normal.png b/sample/res/drawable-xhdpi/perm_group_location_normal.png deleted file mode 100644 index 4c49521af..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_location_normal.png and /dev/null differ diff --git a/sample/res/drawable-xhdpi/perm_group_location_selected.png b/sample/res/drawable-xhdpi/perm_group_location_selected.png deleted file mode 100644 index 7208d7bc4..000000000 Binary files a/sample/res/drawable-xhdpi/perm_group_location_selected.png and /dev/null differ diff --git a/sample/res/drawable/perm_group_calendar.xml b/sample/res/drawable/perm_group_calendar.xml deleted file mode 100644 index b1719adc5..000000000 --- a/sample/res/drawable/perm_group_calendar.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/sample/res/drawable/perm_group_camera.xml b/sample/res/drawable/perm_group_camera.xml deleted file mode 100644 index 4dd90d219..000000000 --- a/sample/res/drawable/perm_group_camera.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/sample/res/drawable/perm_group_device_alarms.xml b/sample/res/drawable/perm_group_device_alarms.xml deleted file mode 100644 index 791c29e28..000000000 --- a/sample/res/drawable/perm_group_device_alarms.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/sample/res/drawable/perm_group_location.xml b/sample/res/drawable/perm_group_location.xml deleted file mode 100644 index 0bbc3760c..000000000 --- a/sample/res/drawable/perm_group_location.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/sample/res/layout/simple_circles.xml b/sample/res/layout/simple_circles.xml deleted file mode 100644 index c5da13800..000000000 --- a/sample/res/layout/simple_circles.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_circles_vertical.xml b/sample/res/layout/simple_circles_vertical.xml deleted file mode 100644 index 20753ed0e..000000000 --- a/sample/res/layout/simple_circles_vertical.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_icons.xml b/sample/res/layout/simple_icons.xml deleted file mode 100644 index 2fcb843c7..000000000 --- a/sample/res/layout/simple_icons.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_lines.xml b/sample/res/layout/simple_lines.xml deleted file mode 100644 index 634e6cfee..000000000 --- a/sample/res/layout/simple_lines.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_tabs.xml b/sample/res/layout/simple_tabs.xml deleted file mode 100644 index e6348da57..000000000 --- a/sample/res/layout/simple_tabs.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_titles.xml b/sample/res/layout/simple_titles.xml deleted file mode 100644 index e888bf34f..000000000 --- a/sample/res/layout/simple_titles.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_titles_bottom.xml b/sample/res/layout/simple_titles_bottom.xml deleted file mode 100644 index 2296fd882..000000000 --- a/sample/res/layout/simple_titles_bottom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/simple_underlines.xml b/sample/res/layout/simple_underlines.xml deleted file mode 100644 index e02d3baba..000000000 --- a/sample/res/layout/simple_underlines.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/themed_circles.xml b/sample/res/layout/themed_circles.xml deleted file mode 100644 index 5978db9f0..000000000 --- a/sample/res/layout/themed_circles.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/themed_lines.xml b/sample/res/layout/themed_lines.xml deleted file mode 100644 index f76f03899..000000000 --- a/sample/res/layout/themed_lines.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/layout/themed_titles.xml b/sample/res/layout/themed_titles.xml deleted file mode 100644 index a8373d7cf..000000000 --- a/sample/res/layout/themed_titles.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - diff --git a/sample/res/layout/themed_underlines.xml b/sample/res/layout/themed_underlines.xml deleted file mode 100644 index 8bd0953f0..000000000 --- a/sample/res/layout/themed_underlines.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/sample/res/menu/menu.xml b/sample/res/menu/menu.xml deleted file mode 100644 index 3f3db597e..000000000 --- a/sample/res/menu/menu.xml +++ /dev/null @@ -1,7 +0,0 @@ - - -

- - - - diff --git a/sample/res/values/styles.xml b/sample/res/values/styles.xml deleted file mode 100644 index ed6c3bf4c..000000000 --- a/sample/res/values/styles.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sample/screens.png b/sample/screens.png deleted file mode 100644 index d2c441f7f..000000000 Binary files a/sample/screens.png and /dev/null differ diff --git a/sample/src/com/viewpagerindicator/sample/BaseSampleActivity.java b/sample/src/com/viewpagerindicator/sample/BaseSampleActivity.java deleted file mode 100644 index 0d9e14c8d..000000000 --- a/sample/src/com/viewpagerindicator/sample/BaseSampleActivity.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.viewpagerindicator.sample; - -import java.util.Random; - -import com.viewpagerindicator.PageIndicator; - -import android.support.v4.app.FragmentActivity; -import android.support.v4.view.ViewPager; -import android.view.Menu; -import android.view.MenuItem; -import android.widget.Toast; - -public abstract class BaseSampleActivity extends FragmentActivity { - private static final Random RANDOM = new Random(); - - TestFragmentAdapter mAdapter; - ViewPager mPager; - PageIndicator mIndicator; - - @Override - public boolean onCreateOptionsMenu(Menu menu) { - getMenuInflater().inflate(R.menu.menu, menu); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case R.id.random: - final int page = RANDOM.nextInt(mAdapter.getCount()); - Toast.makeText(this, "Changing to page " + page, Toast.LENGTH_SHORT); - mPager.setCurrentItem(page); - return true; - - case R.id.add_page: - if (mAdapter.getCount() < 10) { - mAdapter.setCount(mAdapter.getCount() + 1); - mIndicator.notifyDataSetChanged(); - } - return true; - - case R.id.remove_page: - if (mAdapter.getCount() > 1) { - mAdapter.setCount(mAdapter.getCount() - 1); - mIndicator.notifyDataSetChanged(); - } - return true; - } - return super.onOptionsItemSelected(item); - } -} diff --git a/sample/src/com/viewpagerindicator/sample/ListSamples.java b/sample/src/com/viewpagerindicator/sample/ListSamples.java deleted file mode 100644 index c175e8e1c..000000000 --- a/sample/src/com/viewpagerindicator/sample/ListSamples.java +++ /dev/null @@ -1,132 +0,0 @@ -package com.viewpagerindicator.sample; - -import java.text.Collator; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import android.app.ListActivity; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; -import android.os.Bundle; -import android.view.View; -import android.widget.ListView; -import android.widget.SimpleAdapter; - -public class ListSamples extends ListActivity { - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - Intent intent = getIntent(); - String path = intent.getStringExtra("com.jakewharton.android.viewpagerindicator.sample.Path"); - - if (path == null) { - path = ""; - } - - setListAdapter(new SimpleAdapter(this, getData(path), - android.R.layout.simple_list_item_1, new String[] { "title" }, - new int[] { android.R.id.text1 })); - getListView().setTextFilterEnabled(true); - } - - protected List> getData(String prefix) { - List> myData = new ArrayList>(); - - Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); - mainIntent.addCategory("com.jakewharton.android.viewpagerindicator.sample.SAMPLE"); - - PackageManager pm = getPackageManager(); - List list = pm.queryIntentActivities(mainIntent, 0); - - if (null == list) - return myData; - - String[] prefixPath; - String prefixWithSlash = prefix; - - if (prefix.equals("")) { - prefixPath = null; - } else { - prefixPath = prefix.split("/"); - prefixWithSlash = prefix + "/"; - } - - int len = list.size(); - - Map entries = new HashMap(); - - for (int i = 0; i < len; i++) { - ResolveInfo info = list.get(i); - CharSequence labelSeq = info.loadLabel(pm); - String label = labelSeq != null - ? labelSeq.toString() - : info.activityInfo.name; - - if (prefixWithSlash.length() == 0 || label.startsWith(prefixWithSlash)) { - - String[] labelPath = label.split("/"); - - String nextLabel = prefixPath == null ? labelPath[0] : labelPath[prefixPath.length]; - - if ((prefixPath != null ? prefixPath.length : 0) == labelPath.length - 1) { - addItem(myData, nextLabel, activityIntent( - info.activityInfo.applicationInfo.packageName, - info.activityInfo.name)); - } else { - if (entries.get(nextLabel) == null) { - addItem(myData, nextLabel, browseIntent(prefix.equals("") ? nextLabel : prefix + "/" + nextLabel)); - entries.put(nextLabel, true); - } - } - } - } - - Collections.sort(myData, NAME_COMPARATOR); - - return myData; - } - - private final static Comparator> NAME_COMPARATOR = - new Comparator>() { - private final Collator collator = Collator.getInstance(); - - public int compare(Map map1, Map map2) { - return collator.compare(map1.get("title"), map2.get("title")); - } - }; - - protected Intent activityIntent(String pkg, String componentName) { - Intent result = new Intent(); - result.setClassName(pkg, componentName); - return result; - } - - protected Intent browseIntent(String path) { - Intent result = new Intent(); - result.setClass(this, ListSamples.class); - result.putExtra("com.jakewharton.android.viewpagerindicator.sample.Path", path); - return result; - } - - protected void addItem(List> data, String name, Intent intent) { - Map temp = new HashMap(); - temp.put("title", name); - temp.put("intent", intent); - data.add(temp); - } - - @Override - @SuppressWarnings("unchecked") - protected void onListItemClick(ListView l, View v, int position, long id) { - Map map = (Map)l.getItemAtPosition(position); - - Intent intent = (Intent) map.get("intent"); - startActivity(intent); - } -} diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesDefault.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesDefault.java deleted file mode 100644 index ffd5eab82..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesDefault.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesDefault extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesInitialPage.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesInitialPage.java deleted file mode 100644 index f28fdcb84..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesInitialPage.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesInitialPage extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - mIndicator.setCurrentItem(mAdapter.getCount() - 1); - - //You can also do: indicator.setViewPager(pager, initialPage); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesSnap.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesSnap.java deleted file mode 100644 index 4307ed9d0..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesSnap.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesSnap extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - CirclePageIndicator indicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator = indicator; - indicator.setViewPager(mPager); - indicator.setSnap(true); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledLayout.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledLayout.java deleted file mode 100644 index 89325bcd8..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledLayout.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesStyledLayout extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.themed_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledMethods.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledMethods.java deleted file mode 100644 index 2ed8b05f4..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledMethods.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesStyledMethods extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - CirclePageIndicator indicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator = indicator; - indicator.setViewPager(mPager); - - final float density = getResources().getDisplayMetrics().density; - indicator.setBackgroundColor(0xFFCCCCCC); - indicator.setRadius(10 * density); - indicator.setPageColor(0x880000FF); - indicator.setFillColor(0xFF888888); - indicator.setStrokeColor(0xFF000000); - indicator.setStrokeWidth(2 * density); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledTheme.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledTheme.java deleted file mode 100644 index 64b21acc1..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesStyledTheme.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesStyledTheme extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - //The look of this sample is set via a style in the manifest - setContentView(R.layout.simple_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleCirclesWithListener.java b/sample/src/com/viewpagerindicator/sample/SampleCirclesWithListener.java deleted file mode 100644 index c59b4924a..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleCirclesWithListener.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import android.widget.Toast; -import com.viewpagerindicator.CirclePageIndicator; - -public class SampleCirclesWithListener extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_circles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (CirclePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - - //We set this on the indicator, NOT the pager - mIndicator.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { - @Override - public void onPageSelected(int position) { - Toast.makeText(SampleCirclesWithListener.this, "Changed to page " + position, Toast.LENGTH_SHORT).show(); - } - - @Override - public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { - } - - @Override - public void onPageScrollStateChanged(int state) { - } - }); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleIconsDefault.java b/sample/src/com/viewpagerindicator/sample/SampleIconsDefault.java deleted file mode 100644 index ff088d515..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleIconsDefault.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.IconPageIndicator; - -public class SampleIconsDefault extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_icons); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (IconPageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} diff --git a/sample/src/com/viewpagerindicator/sample/SampleLinesDefault.java b/sample/src/com/viewpagerindicator/sample/SampleLinesDefault.java deleted file mode 100644 index 5e0136a72..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleLinesDefault.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.LinePageIndicator; - -public class SampleLinesDefault extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_lines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (LinePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleLinesStyledLayout.java b/sample/src/com/viewpagerindicator/sample/SampleLinesStyledLayout.java deleted file mode 100644 index a6222df58..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleLinesStyledLayout.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.LinePageIndicator; - -public class SampleLinesStyledLayout extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.themed_lines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (LinePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleLinesStyledMethods.java b/sample/src/com/viewpagerindicator/sample/SampleLinesStyledMethods.java deleted file mode 100644 index 4addbf370..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleLinesStyledMethods.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.LinePageIndicator; - -public class SampleLinesStyledMethods extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_lines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - LinePageIndicator indicator = (LinePageIndicator)findViewById(R.id.indicator); - mIndicator = indicator; - indicator.setViewPager(mPager); - - final float density = getResources().getDisplayMetrics().density; - indicator.setSelectedColor(0x88FF0000); - indicator.setUnselectedColor(0xFF888888); - indicator.setStrokeWidth(4 * density); - indicator.setLineWidth(30 * density); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleLinesStyledTheme.java b/sample/src/com/viewpagerindicator/sample/SampleLinesStyledTheme.java deleted file mode 100644 index 236299712..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleLinesStyledTheme.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.LinePageIndicator; - -public class SampleLinesStyledTheme extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - //The look of this sample is set via a style in the manifest - setContentView(R.layout.simple_lines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (LinePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTabsDefault.java b/sample/src/com/viewpagerindicator/sample/SampleTabsDefault.java deleted file mode 100644 index 2346a196f..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTabsDefault.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.TabPageIndicator; - -public class SampleTabsDefault extends FragmentActivity { - private static final String[] CONTENT = new String[] { "Recent", "Artists", "Albums", "Songs", "Playlists", "Genres" }; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_tabs); - - FragmentPagerAdapter adapter = new GoogleMusicAdapter(getSupportFragmentManager()); - - ViewPager pager = (ViewPager)findViewById(R.id.pager); - pager.setAdapter(adapter); - - TabPageIndicator indicator = (TabPageIndicator)findViewById(R.id.indicator); - indicator.setViewPager(pager); - } - - class GoogleMusicAdapter extends FragmentPagerAdapter { - public GoogleMusicAdapter(FragmentManager fm) { - super(fm); - } - - @Override - public Fragment getItem(int position) { - return TestFragment.newInstance(CONTENT[position % CONTENT.length]); - } - - @Override - public CharSequence getPageTitle(int position) { - return CONTENT[position % CONTENT.length].toUpperCase(); - } - - @Override - public int getCount() { - return CONTENT.length; - } - } -} diff --git a/sample/src/com/viewpagerindicator/sample/SampleTabsStyled.java b/sample/src/com/viewpagerindicator/sample/SampleTabsStyled.java deleted file mode 100644 index 6def23868..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTabsStyled.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.TabPageIndicator; - -public class SampleTabsStyled extends FragmentActivity { - private static final String[] CONTENT = new String[] { "Recent", "Artists", "Albums", "Songs", "Playlists", "Genres" }; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_tabs); - - FragmentPagerAdapter adapter = new GoogleMusicAdapter(getSupportFragmentManager()); - - ViewPager pager = (ViewPager)findViewById(R.id.pager); - pager.setAdapter(adapter); - - TabPageIndicator indicator = (TabPageIndicator)findViewById(R.id.indicator); - indicator.setViewPager(pager); - } - - class GoogleMusicAdapter extends FragmentPagerAdapter { - public GoogleMusicAdapter(FragmentManager fm) { - super(fm); - } - - @Override - public Fragment getItem(int position) { - return TestFragment.newInstance(CONTENT[position % CONTENT.length]); - } - - @Override - public CharSequence getPageTitle(int position) { - return CONTENT[position % CONTENT.length].toUpperCase(); - } - - @Override - public int getCount() { - return CONTENT.length; - } - } -} diff --git a/sample/src/com/viewpagerindicator/sample/SampleTabsWithIcons.java b/sample/src/com/viewpagerindicator/sample/SampleTabsWithIcons.java deleted file mode 100644 index db3ed8bb4..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTabsWithIcons.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.IconPagerAdapter; -import com.viewpagerindicator.TabPageIndicator; - -public class SampleTabsWithIcons extends FragmentActivity { - private static final String[] CONTENT = new String[] { "Calendar", "Camera", "Alarms", "Location" }; - private static final int[] ICONS = new int[] { - R.drawable.perm_group_calendar, - R.drawable.perm_group_camera, - R.drawable.perm_group_device_alarms, - R.drawable.perm_group_location, - }; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_tabs); - - FragmentPagerAdapter adapter = new GoogleMusicAdapter(getSupportFragmentManager()); - - ViewPager pager = (ViewPager)findViewById(R.id.pager); - pager.setAdapter(adapter); - - TabPageIndicator indicator = (TabPageIndicator)findViewById(R.id.indicator); - indicator.setViewPager(pager); - } - - class GoogleMusicAdapter extends FragmentPagerAdapter implements IconPagerAdapter { - public GoogleMusicAdapter(FragmentManager fm) { - super(fm); - } - - @Override - public Fragment getItem(int position) { - return TestFragment.newInstance(CONTENT[position % CONTENT.length]); - } - - @Override - public CharSequence getPageTitle(int position) { - return CONTENT[position % CONTENT.length].toUpperCase(); - } - - @Override public int getIconResId(int index) { - return ICONS[index]; - } - - @Override - public int getCount() { - return CONTENT.length; - } - } -} diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesBottom.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesBottom.java deleted file mode 100644 index 52a2a13ca..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesBottom.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.TitlePageIndicator; - -public class SampleTitlesBottom extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles_bottom); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesCenterClickListener.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesCenterClickListener.java deleted file mode 100644 index 49301ef3f..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesCenterClickListener.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import android.widget.Toast; - -import com.viewpagerindicator.TitlePageIndicator; -import com.viewpagerindicator.TitlePageIndicator.IndicatorStyle; -import com.viewpagerindicator.TitlePageIndicator.OnCenterItemClickListener; - -public class SampleTitlesCenterClickListener extends BaseSampleActivity implements OnCenterItemClickListener { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - TitlePageIndicator indicator = (TitlePageIndicator)findViewById(R.id.indicator); - indicator.setViewPager(mPager); - indicator.setFooterIndicatorStyle(IndicatorStyle.Underline); - indicator.setOnCenterItemClickListener(this); - mIndicator = indicator; - } - - @Override - public void onCenterItemClick(int position) { - Toast.makeText(this, "You clicked the center title!", Toast.LENGTH_SHORT).show(); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesDefault.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesDefault.java deleted file mode 100644 index 52a464a70..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesDefault.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; - -import com.viewpagerindicator.TitlePageIndicator; - -public class SampleTitlesDefault extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesInitialPage.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesInitialPage.java deleted file mode 100644 index 2b701de40..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesInitialPage.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; - -import com.viewpagerindicator.TitlePageIndicator; - -public class SampleTitlesInitialPage extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - mIndicator.setCurrentItem(mAdapter.getCount() - 1); - - //You can also do: indicator.setViewPager(pager, initialPage); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledLayout.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledLayout.java deleted file mode 100644 index 3d91470c2..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledLayout.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; - -import com.viewpagerindicator.TitlePageIndicator; - -public class SampleTitlesStyledLayout extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.themed_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledMethods.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledMethods.java deleted file mode 100644 index 73567772c..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledMethods.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; - -import com.viewpagerindicator.TitlePageIndicator; -import com.viewpagerindicator.TitlePageIndicator.IndicatorStyle; - -public class SampleTitlesStyledMethods extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - TitlePageIndicator indicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator = indicator; - indicator.setViewPager(mPager); - - final float density = getResources().getDisplayMetrics().density; - indicator.setBackgroundColor(0x18FF0000); - indicator.setFooterColor(0xFFAA2222); - indicator.setFooterLineHeight(1 * density); //1dp - indicator.setFooterIndicatorHeight(3 * density); //3dp - indicator.setFooterIndicatorStyle(IndicatorStyle.Underline); - indicator.setTextColor(0xAA000000); - indicator.setSelectedColor(0xFF000000); - indicator.setSelectedBold(true); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledTheme.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledTheme.java deleted file mode 100644 index 7e01de7b8..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesStyledTheme.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; - -import com.viewpagerindicator.TitlePageIndicator; - -public class SampleTitlesStyledTheme extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - //The look of this sample is set via a style in the manifest - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesTriangle.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesTriangle.java deleted file mode 100644 index bc7d9b25b..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesTriangle.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; - -import com.viewpagerindicator.TitlePageIndicator; -import com.viewpagerindicator.TitlePageIndicator.IndicatorStyle; - -public class SampleTitlesTriangle extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - TitlePageIndicator indicator = (TitlePageIndicator)findViewById(R.id.indicator); - indicator.setViewPager(mPager); - indicator.setFooterIndicatorStyle(IndicatorStyle.Triangle); - mIndicator = indicator; - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleTitlesWithListener.java b/sample/src/com/viewpagerindicator/sample/SampleTitlesWithListener.java deleted file mode 100644 index 984c848d6..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleTitlesWithListener.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import android.widget.Toast; - -import com.viewpagerindicator.TitlePageIndicator; - -public class SampleTitlesWithListener extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_titles); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (TitlePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - - //We set this on the indicator, NOT the pager - mIndicator.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { - @Override - public void onPageSelected(int position) { - Toast.makeText(SampleTitlesWithListener.this, "Changed to page " + position, Toast.LENGTH_SHORT).show(); - } - - @Override - public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { - } - - @Override - public void onPageScrollStateChanged(int state) { - } - }); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesDefault.java b/sample/src/com/viewpagerindicator/sample/SampleUnderlinesDefault.java deleted file mode 100644 index 468fb8241..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesDefault.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.UnderlinePageIndicator; - -public class SampleUnderlinesDefault extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_underlines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (UnderlinePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesNoFade.java b/sample/src/com/viewpagerindicator/sample/SampleUnderlinesNoFade.java deleted file mode 100644 index 44ecb5aec..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesNoFade.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.UnderlinePageIndicator; - -public class SampleUnderlinesNoFade extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_underlines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - UnderlinePageIndicator indicator = (UnderlinePageIndicator)findViewById(R.id.indicator); - indicator.setViewPager(mPager); - indicator.setFades(false); - mIndicator = indicator; - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledLayout.java b/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledLayout.java deleted file mode 100644 index 8d2a9de52..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledLayout.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.UnderlinePageIndicator; - -public class SampleUnderlinesStyledLayout extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.themed_underlines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (UnderlinePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledMethods.java b/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledMethods.java deleted file mode 100644 index 651808902..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledMethods.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.UnderlinePageIndicator; - -public class SampleUnderlinesStyledMethods extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.simple_underlines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - UnderlinePageIndicator indicator = (UnderlinePageIndicator)findViewById(R.id.indicator); - mIndicator = indicator; - indicator.setViewPager(mPager); - indicator.setSelectedColor(0xFFCC0000); - indicator.setBackgroundColor(0xFFCCCCCC); - indicator.setFadeDelay(1000); - indicator.setFadeLength(1000); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledTheme.java b/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledTheme.java deleted file mode 100644 index a84514354..000000000 --- a/sample/src/com/viewpagerindicator/sample/SampleUnderlinesStyledTheme.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.view.ViewPager; -import com.viewpagerindicator.UnderlinePageIndicator; - -public class SampleUnderlinesStyledTheme extends BaseSampleActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - //The look of this sample is set via a style in the manifest - setContentView(R.layout.simple_underlines); - - mAdapter = new TestFragmentAdapter(getSupportFragmentManager()); - - mPager = (ViewPager)findViewById(R.id.pager); - mPager.setAdapter(mAdapter); - - mIndicator = (UnderlinePageIndicator)findViewById(R.id.indicator); - mIndicator.setViewPager(mPager); - } -} \ No newline at end of file diff --git a/sample/src/com/viewpagerindicator/sample/TestFragment.java b/sample/src/com/viewpagerindicator/sample/TestFragment.java deleted file mode 100644 index f21e22882..000000000 --- a/sample/src/com/viewpagerindicator/sample/TestFragment.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.view.Gravity; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.LinearLayout; -import android.widget.LinearLayout.LayoutParams; -import android.widget.TextView; - -public final class TestFragment extends Fragment { - private static final String KEY_CONTENT = "TestFragment:Content"; - - public static TestFragment newInstance(String content) { - TestFragment fragment = new TestFragment(); - - StringBuilder builder = new StringBuilder(); - for (int i = 0; i < 20; i++) { - builder.append(content).append(" "); - } - builder.deleteCharAt(builder.length() - 1); - fragment.mContent = builder.toString(); - - return fragment; - } - - private String mContent = "???"; - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - if ((savedInstanceState != null) && savedInstanceState.containsKey(KEY_CONTENT)) { - mContent = savedInstanceState.getString(KEY_CONTENT); - } - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - TextView text = new TextView(getActivity()); - text.setGravity(Gravity.CENTER); - text.setText(mContent); - text.setTextSize(20 * getResources().getDisplayMetrics().density); - text.setPadding(20, 20, 20, 20); - - LinearLayout layout = new LinearLayout(getActivity()); - layout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); - layout.setGravity(Gravity.CENTER); - layout.addView(text); - - return layout; - } - - @Override - public void onSaveInstanceState(Bundle outState) { - super.onSaveInstanceState(outState); - outState.putString(KEY_CONTENT, mContent); - } -} diff --git a/sample/src/com/viewpagerindicator/sample/TestFragmentAdapter.java b/sample/src/com/viewpagerindicator/sample/TestFragmentAdapter.java deleted file mode 100644 index 5515f0365..000000000 --- a/sample/src/com/viewpagerindicator/sample/TestFragmentAdapter.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.viewpagerindicator.sample; - -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentManager; -import android.support.v4.app.FragmentPagerAdapter; -import com.viewpagerindicator.IconPagerAdapter; - -class TestFragmentAdapter extends FragmentPagerAdapter implements IconPagerAdapter { - protected static final String[] CONTENT = new String[] { "This", "Is", "A", "Test", }; - protected static final int[] ICONS = new int[] { - R.drawable.perm_group_calendar, - R.drawable.perm_group_camera, - R.drawable.perm_group_device_alarms, - R.drawable.perm_group_location - }; - - private int mCount = CONTENT.length; - - public TestFragmentAdapter(FragmentManager fm) { - super(fm); - } - - @Override - public Fragment getItem(int position) { - return TestFragment.newInstance(CONTENT[position % CONTENT.length]); - } - - @Override - public int getCount() { - return mCount; - } - - @Override - public CharSequence getPageTitle(int position) { - return TestFragmentAdapter.CONTENT[position % CONTENT.length]; - } - - @Override - public int getIconResId(int index) { - return ICONS[index % ICONS.length]; - } - - public void setCount(int count) { - if (count > 0 && count <= 10) { - mCount = count; - notifyDataSetChanged(); - } - } -} \ No newline at end of file diff --git a/sample/web.png b/sample/web.png deleted file mode 100644 index 5e9d60fe3..000000000 Binary files a/sample/web.png and /dev/null differ diff --git a/library/AndroidManifest.xml b/src/main/AndroidManifest.xml similarity index 100% rename from library/AndroidManifest.xml rename to src/main/AndroidManifest.xml diff --git a/library/src/com/viewpagerindicator/CirclePageIndicator.java b/src/main/java/com/viewpagerindicator/CirclePageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/CirclePageIndicator.java rename to src/main/java/com/viewpagerindicator/CirclePageIndicator.java diff --git a/library/src/com/viewpagerindicator/IconPageIndicator.java b/src/main/java/com/viewpagerindicator/IconPageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/IconPageIndicator.java rename to src/main/java/com/viewpagerindicator/IconPageIndicator.java diff --git a/library/src/com/viewpagerindicator/IconPagerAdapter.java b/src/main/java/com/viewpagerindicator/IconPagerAdapter.java similarity index 100% rename from library/src/com/viewpagerindicator/IconPagerAdapter.java rename to src/main/java/com/viewpagerindicator/IconPagerAdapter.java diff --git a/library/src/com/viewpagerindicator/IcsLinearLayout.java b/src/main/java/com/viewpagerindicator/IcsLinearLayout.java similarity index 100% rename from library/src/com/viewpagerindicator/IcsLinearLayout.java rename to src/main/java/com/viewpagerindicator/IcsLinearLayout.java diff --git a/library/src/com/viewpagerindicator/LinePageIndicator.java b/src/main/java/com/viewpagerindicator/LinePageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/LinePageIndicator.java rename to src/main/java/com/viewpagerindicator/LinePageIndicator.java diff --git a/library/src/com/viewpagerindicator/PageIndicator.java b/src/main/java/com/viewpagerindicator/PageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/PageIndicator.java rename to src/main/java/com/viewpagerindicator/PageIndicator.java diff --git a/library/src/com/viewpagerindicator/TabPageIndicator.java b/src/main/java/com/viewpagerindicator/TabPageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/TabPageIndicator.java rename to src/main/java/com/viewpagerindicator/TabPageIndicator.java diff --git a/library/src/com/viewpagerindicator/TitlePageIndicator.java b/src/main/java/com/viewpagerindicator/TitlePageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/TitlePageIndicator.java rename to src/main/java/com/viewpagerindicator/TitlePageIndicator.java diff --git a/library/src/com/viewpagerindicator/UnderlinePageIndicator.java b/src/main/java/com/viewpagerindicator/UnderlinePageIndicator.java similarity index 100% rename from library/src/com/viewpagerindicator/UnderlinePageIndicator.java rename to src/main/java/com/viewpagerindicator/UnderlinePageIndicator.java diff --git a/library/res/color/vpi__dark_theme.xml b/src/main/res/color/vpi__dark_theme.xml similarity index 100% rename from library/res/color/vpi__dark_theme.xml rename to src/main/res/color/vpi__dark_theme.xml diff --git a/library/res/color/vpi__light_theme.xml b/src/main/res/color/vpi__light_theme.xml similarity index 100% rename from library/res/color/vpi__light_theme.xml rename to src/main/res/color/vpi__light_theme.xml diff --git a/src/main/res/drawable-hdpi/vpi__tab_selected_focused_holo.9.png b/src/main/res/drawable-hdpi/vpi__tab_selected_focused_holo.9.png new file mode 100644 index 000000000..673e3bf10 Binary files /dev/null and b/src/main/res/drawable-hdpi/vpi__tab_selected_focused_holo.9.png differ diff --git a/src/main/res/drawable-hdpi/vpi__tab_selected_holo.9.png b/src/main/res/drawable-hdpi/vpi__tab_selected_holo.9.png new file mode 100644 index 000000000..d57df98b5 Binary files /dev/null and b/src/main/res/drawable-hdpi/vpi__tab_selected_holo.9.png differ diff --git a/src/main/res/drawable-hdpi/vpi__tab_selected_pressed_holo.9.png b/src/main/res/drawable-hdpi/vpi__tab_selected_pressed_holo.9.png new file mode 100644 index 000000000..6278eef47 Binary files /dev/null and b/src/main/res/drawable-hdpi/vpi__tab_selected_pressed_holo.9.png differ diff --git a/src/main/res/drawable-hdpi/vpi__tab_unselected_focused_holo.9.png b/src/main/res/drawable-hdpi/vpi__tab_unselected_focused_holo.9.png new file mode 100644 index 000000000..294991d79 Binary files /dev/null and b/src/main/res/drawable-hdpi/vpi__tab_unselected_focused_holo.9.png differ diff --git a/src/main/res/drawable-hdpi/vpi__tab_unselected_holo.9.png b/src/main/res/drawable-hdpi/vpi__tab_unselected_holo.9.png new file mode 100644 index 000000000..19532ab10 Binary files /dev/null and b/src/main/res/drawable-hdpi/vpi__tab_unselected_holo.9.png differ diff --git a/src/main/res/drawable-hdpi/vpi__tab_unselected_pressed_holo.9.png b/src/main/res/drawable-hdpi/vpi__tab_unselected_pressed_holo.9.png new file mode 100644 index 000000000..aadc6f87b Binary files /dev/null and b/src/main/res/drawable-hdpi/vpi__tab_unselected_pressed_holo.9.png differ diff --git a/src/main/res/drawable-mdpi/vpi__tab_selected_focused_holo.9.png b/src/main/res/drawable-mdpi/vpi__tab_selected_focused_holo.9.png new file mode 100644 index 000000000..c9972e74b Binary files /dev/null and b/src/main/res/drawable-mdpi/vpi__tab_selected_focused_holo.9.png differ diff --git a/src/main/res/drawable-mdpi/vpi__tab_selected_holo.9.png b/src/main/res/drawable-mdpi/vpi__tab_selected_holo.9.png new file mode 100644 index 000000000..587337caf Binary files /dev/null and b/src/main/res/drawable-mdpi/vpi__tab_selected_holo.9.png differ diff --git a/src/main/res/drawable-mdpi/vpi__tab_selected_pressed_holo.9.png b/src/main/res/drawable-mdpi/vpi__tab_selected_pressed_holo.9.png new file mode 100644 index 000000000..155c4fc75 Binary files /dev/null and b/src/main/res/drawable-mdpi/vpi__tab_selected_pressed_holo.9.png differ diff --git a/src/main/res/drawable-mdpi/vpi__tab_unselected_focused_holo.9.png b/src/main/res/drawable-mdpi/vpi__tab_unselected_focused_holo.9.png new file mode 100644 index 000000000..f0cecd183 Binary files /dev/null and b/src/main/res/drawable-mdpi/vpi__tab_unselected_focused_holo.9.png differ diff --git a/src/main/res/drawable-mdpi/vpi__tab_unselected_holo.9.png b/src/main/res/drawable-mdpi/vpi__tab_unselected_holo.9.png new file mode 100644 index 000000000..a2dbf42b7 Binary files /dev/null and b/src/main/res/drawable-mdpi/vpi__tab_unselected_holo.9.png differ diff --git a/src/main/res/drawable-mdpi/vpi__tab_unselected_pressed_holo.9.png b/src/main/res/drawable-mdpi/vpi__tab_unselected_pressed_holo.9.png new file mode 100644 index 000000000..b1223fe3c Binary files /dev/null and b/src/main/res/drawable-mdpi/vpi__tab_unselected_pressed_holo.9.png differ diff --git a/src/main/res/drawable-xhdpi/vpi__tab_selected_focused_holo.9.png b/src/main/res/drawable-xhdpi/vpi__tab_selected_focused_holo.9.png new file mode 100644 index 000000000..03cfb0945 Binary files /dev/null and b/src/main/res/drawable-xhdpi/vpi__tab_selected_focused_holo.9.png differ diff --git a/src/main/res/drawable-xhdpi/vpi__tab_selected_holo.9.png b/src/main/res/drawable-xhdpi/vpi__tab_selected_holo.9.png new file mode 100644 index 000000000..e4229f26b Binary files /dev/null and b/src/main/res/drawable-xhdpi/vpi__tab_selected_holo.9.png differ diff --git a/src/main/res/drawable-xhdpi/vpi__tab_selected_pressed_holo.9.png b/src/main/res/drawable-xhdpi/vpi__tab_selected_pressed_holo.9.png new file mode 100644 index 000000000..e862cb121 Binary files /dev/null and b/src/main/res/drawable-xhdpi/vpi__tab_selected_pressed_holo.9.png differ diff --git a/src/main/res/drawable-xhdpi/vpi__tab_unselected_focused_holo.9.png b/src/main/res/drawable-xhdpi/vpi__tab_unselected_focused_holo.9.png new file mode 100644 index 000000000..f3a5cbde8 Binary files /dev/null and b/src/main/res/drawable-xhdpi/vpi__tab_unselected_focused_holo.9.png differ diff --git a/src/main/res/drawable-xhdpi/vpi__tab_unselected_holo.9.png b/src/main/res/drawable-xhdpi/vpi__tab_unselected_holo.9.png new file mode 100644 index 000000000..946517378 Binary files /dev/null and b/src/main/res/drawable-xhdpi/vpi__tab_unselected_holo.9.png differ diff --git a/src/main/res/drawable-xhdpi/vpi__tab_unselected_pressed_holo.9.png b/src/main/res/drawable-xhdpi/vpi__tab_unselected_pressed_holo.9.png new file mode 100644 index 000000000..f1eb67323 Binary files /dev/null and b/src/main/res/drawable-xhdpi/vpi__tab_unselected_pressed_holo.9.png differ diff --git a/library/res/drawable/vpi__tab_indicator.xml b/src/main/res/drawable/vpi__tab_indicator.xml similarity index 100% rename from library/res/drawable/vpi__tab_indicator.xml rename to src/main/res/drawable/vpi__tab_indicator.xml diff --git a/library/res/values/vpi__attrs.xml b/src/main/res/values/vpi__attrs.xml similarity index 100% rename from library/res/values/vpi__attrs.xml rename to src/main/res/values/vpi__attrs.xml diff --git a/library/res/values/vpi__colors.xml b/src/main/res/values/vpi__colors.xml similarity index 100% rename from library/res/values/vpi__colors.xml rename to src/main/res/values/vpi__colors.xml diff --git a/library/res/values/vpi__defaults.xml b/src/main/res/values/vpi__defaults.xml similarity index 100% rename from library/res/values/vpi__defaults.xml rename to src/main/res/values/vpi__defaults.xml diff --git a/library/res/values/vpi__styles.xml b/src/main/res/values/vpi__styles.xml similarity index 100% rename from library/res/values/vpi__styles.xml rename to src/main/res/values/vpi__styles.xml