├── demo.gif ├── settings.gradle ├── .gitignore ├── androidpagecontrol ├── gradle.properties ├── docs │ └── README.txt ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── res │ │ └── values │ │ │ ├── colors.xml │ │ │ └── attrs.xml │ │ └── kotlin │ │ └── com │ │ └── androidpagecontrol │ │ └── PageControl.kt └── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── androidpagecontrol-samples └── demos │ ├── ic_launcher-web.png │ ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── menu │ │ │ └── main.xml │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── values-v11 │ │ │ └── styles.xml │ │ └── layout │ │ │ ├── activity_default.xml │ │ │ ├── list_item_main.xml │ │ │ └── activity_about.xml │ │ ├── java │ │ └── com │ │ │ └── androidpagecontrol │ │ │ └── samples │ │ │ └── demos │ │ │ ├── CustomActivity.java │ │ │ ├── CustomShapeActivity.java │ │ │ ├── EmphasizedCurrentActivity.java │ │ │ ├── SamplePagerAdapter.java │ │ │ └── DefaultActivity.java │ │ ├── kotlin │ │ └── com │ │ │ └── androidpagecontrol │ │ │ └── samples │ │ │ └── demos │ │ │ ├── AboutActivity.kt │ │ │ └── MainActivity.kt │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ └── build.gradle ├── .travis.yml ├── gradle.properties ├── gradlew.bat ├── README.md ├── kotlin-publish.gradle ├── gradlew ├── images └── ic_launcher.svg └── LICENSE /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/demo.gif -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':androidpagecontrol' 2 | include ':androidpagecontrol-samples:demos' 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | local.properties 3 | *.keystore 4 | *.gradle/ 5 | target/ 6 | .idea/ 7 | *.iml 8 | -------------------------------------------------------------------------------- /androidpagecontrol/gradle.properties: -------------------------------------------------------------------------------- 1 | POM_NAME=Android-PageControl 2 | POM_ARTIFACT_ID=androidpagecontrol 3 | POM_PACKAGING=aar 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/androidpagecontrol-samples/demos/ic_launcher-web.png -------------------------------------------------------------------------------- /androidpagecontrol/docs/README.txt: -------------------------------------------------------------------------------- 1 | An empty javadoc. 2 | 3 | Some work is required to do javadocs for Kotlin files. 4 | 5 | See http://youtrack.jetbrains.com/issue/KT-3756 for progress 6 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/androidpagecontrol-samples/demos/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/androidpagecontrol-samples/demos/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/androidpagecontrol-samples/demos/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/androidpagecontrol-samples/demos/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/drawable-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksoichiro/Android-PageControl/HEAD/androidpagecontrol-samples/demos/src/main/res/drawable-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri May 01 07:33:57 JST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: android 2 | android: 3 | components: 4 | - build-tools-20.0.0 5 | - tools 6 | - android-20 7 | - android-19 8 | - sys-img-armeabi-v7a-android-19 9 | - extra-android-support 10 | - extra-android-m2repository 11 | licenses: 12 | - 'android-sdk-license-.+' 13 | - android-sdk-preview-license-52d11cd2 14 | before_script: 15 | - echo no | android create avd --force -n test -t android-19 --abi default/armeabi-v7a 16 | - emulator -avd test -no-skin -no-audio -no-window & 17 | - android-wait-for-emulator 18 | script: 19 | - travis_retry ./gradlew assemble connectedCheck 20 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | VERSION_NAME=0.1.1 2 | VERSION_CODE=1 3 | GROUP=com.github.ksoichiro 4 | 5 | POM_DESCRIPTION=PageControl for Android apps. 6 | POM_URL=https://github.com/ksoichiro/Android-PageControl 7 | POM_SCM_URL=https://github.com/ksoichiro/Android-PageControl 8 | POM_SCM_CONNECTION=scm:git@github.com/ksoichiro/Android-PageControl.git 9 | POM_SCM_DEV_CONNECTION=scm:git@github.com:ksoichiro/Android-PageControl.git 10 | POM_LICENCE_NAME=Apache License 2.0 11 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0 12 | POM_LICENCE_DIST=repo 13 | POM_DEVELOPER_ID=ksoichiro 14 | POM_DEVELOPER_NAME=Soichiro Kashima 15 | 16 | org.gradle.jvmargs=-XX:MaxPermSize=512m 17 | -------------------------------------------------------------------------------- /androidpagecontrol/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/java/com/androidpagecontrol/samples/demos/CustomActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Soichiro Kashima 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.androidpagecontrol.samples.demos; 18 | 19 | public class CustomActivity extends DefaultActivity { 20 | } -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/java/com/androidpagecontrol/samples/demos/CustomShapeActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Soichiro Kashima 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.androidpagecontrol.samples.demos; 18 | 19 | public class CustomShapeActivity extends DefaultActivity { 20 | } -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/java/com/androidpagecontrol/samples/demos/EmphasizedCurrentActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 Soichiro Kashima 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.androidpagecontrol.samples.demos; 18 | 19 | public class EmphasizedCurrentActivity extends DefaultActivity { 20 | } -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /androidpagecontrol/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '0.11.91.1' 3 | repositories { 4 | mavenCentral() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:1.0.0' 8 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.library' 13 | apply plugin: 'kotlin-android' 14 | 15 | dependencies { 16 | compile 'com.android.support:support-v4:20.0.0' 17 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 18 | } 19 | 20 | android { 21 | compileSdkVersion 20 22 | buildToolsVersion "20.0.0" 23 | 24 | defaultConfig { 25 | minSdkVersion 8 26 | targetSdkVersion 20 27 | } 28 | 29 | sourceSets { 30 | main.java.srcDirs += 'src/main/kotlin' 31 | } 32 | 33 | lintOptions { 34 | abortOnError false 35 | } 36 | } 37 | 38 | apply from: '../kotlin-publish.gradle' 39 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /androidpagecontrol/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | #757575 20 | #9e9e9e 21 | #bdbdbd 22 | #eeeeee 23 | 24 | 25 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '0.11.91.1' 3 | repositories { 4 | mavenCentral() 5 | } 6 | dependencies { 7 | classpath 'com.android.tools.build:gradle:1.0.0' 8 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.application' 13 | apply plugin: 'kotlin-android' 14 | 15 | dependencies { 16 | compile project(':androidpagecontrol') 17 | compile 'com.android.support:support-v4:20.0.0' 18 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 19 | } 20 | 21 | android { 22 | compileSdkVersion 20 23 | buildToolsVersion "20.0.0" 24 | 25 | defaultConfig { 26 | versionCode 1 27 | versionName VERSION_NAME 28 | minSdkVersion 8 29 | targetSdkVersion 20 30 | } 31 | 32 | sourceSets { 33 | main.java.srcDirs += 'src/main/kotlin' 34 | } 35 | 36 | lintOptions { 37 | checkReleaseBuilds false 38 | abortOnError false 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 16dp 20 | 16dp 21 | 8dp 22 | 8dp 23 | 8dp 24 | 6dp 25 | 26 | 27 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /androidpagecontrol-samples/demos/src/main/res/layout/activity_default.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 |