├── app ├── .gitignore ├── release │ ├── app-release.apk │ └── output.json ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── iron_man.jpg │ │ │ │ ├── black_widow.jpg │ │ │ │ ├── captain_america.jpeg │ │ │ │ ├── ic_apps_black_24dp.xml │ │ │ │ ├── ic_build_black_24dp.xml │ │ │ │ ├── ic_border_color_black_24dp.xml │ │ │ │ ├── ic_archive_black_24dp.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_editor.xml │ │ │ │ ├── fragment_setting.xml │ │ │ │ └── fragment_gallery.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── sdsmdg │ │ │ │ └── aridj │ │ │ │ └── driftdrawerdemo │ │ │ │ ├── fragments │ │ │ │ ├── EditorFragment.kt │ │ │ │ ├── GalleryFragment.kt │ │ │ │ └── SettingFragment.kt │ │ │ │ └── MainActivity.kt │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── sdsmdg │ │ │ └── aridj │ │ │ └── driftdrawerdemo │ │ │ └── ExampleUnitTest.kt │ └── androidTest │ │ └── java │ │ └── com │ │ └── sdsmdg │ │ └── aridj │ │ └── driftdrawerdemo │ │ └── ExampleInstrumentedTest.kt ├── proguard-rules.pro └── build.gradle ├── driftdrawer ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── res │ │ └── values │ │ │ ├── ids.xml │ │ │ └── strings.xml │ │ └── java │ │ └── com │ │ └── sdsmdg │ │ └── aridj │ │ └── driftdrawer │ │ ├── transformations │ │ ├── Transformation.kt │ │ ├── RotationTransformation.kt │ │ ├── CombineTransformation.kt │ │ └── ScaleTransformation.kt │ │ ├── DriftDrawer.kt │ │ ├── DriftDrawerLayout.kt │ │ ├── DriftDrawerBuilder.kt │ │ └── DriftNavLayout.kt ├── proguard-rules.pro ├── build.gradle └── deploy.gradle ├── settings.gradle ├── cacerts ├── images └── sample.gif ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── LICENSE ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /driftdrawer/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | keystore.gradle 3 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':driftdrawer' 2 | -------------------------------------------------------------------------------- /cacerts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/cacerts -------------------------------------------------------------------------------- /images/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/images/sample.gif -------------------------------------------------------------------------------- /app/release/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/release/app-release.apk -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/ 5 | .DS_Store 6 | /build 7 | /captures 8 | .externalNativeBuild 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/iron_man.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/drawable/iron_man.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/black_widow.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/drawable/black_widow.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/captain_america.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/drawable/captain_america.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /driftdrawer/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /driftdrawer/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arihant-001/DriftDrawer/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /driftdrawer/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | lib 3 | Open 4 | Close 5 | 6 | -------------------------------------------------------------------------------- /app/release/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9C27B0 4 | #7B1FA2 5 | #FF4081 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DriftDrawer 3 | 4 | 5 | Hello blank fragment 6 | 7 | -------------------------------------------------------------------------------- /driftdrawer/src/main/java/com/sdsmdg/aridj/driftdrawer/transformations/Transformation.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawer.transformations 2 | 3 | import android.view.View 4 | 5 | interface Transformation { 6 | 7 | fun transform(progress: Float, view: View) 8 | 9 | } -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed May 23 01:40:44 IST 2018 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-4.4-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /driftdrawer/src/main/java/com/sdsmdg/aridj/driftdrawer/transformations/RotationTransformation.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawer.transformations 2 | 3 | import android.view.View 4 | 5 | class RotationTransformation: Transformation { 6 | 7 | override fun transform(progress: Float, view: View) { 8 | val rotation = 0 + progress * (360 - 0) 9 | view.rotation = rotation 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /driftdrawer/src/main/java/com/sdsmdg/aridj/driftdrawer/DriftDrawer.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawer 2 | 3 | interface DriftDrawer { 4 | 5 | fun isDrawerClosed(): Boolean 6 | 7 | fun closeDrawer() 8 | 9 | fun closeDrawer(animated: Boolean) 10 | 11 | fun openDrawer() 12 | 13 | fun openDrawer(animated: Boolean) 14 | 15 | fun getLayout(): DriftNavLayout 16 | 17 | fun setSelectedPosition(position: Int) 18 | } -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/sdsmdg/aridj/driftdrawerdemo/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawerdemo 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /driftdrawer/src/main/java/com/sdsmdg/aridj/driftdrawer/transformations/CombineTransformation.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawer.transformations 2 | 3 | import android.view.View 4 | 5 | class CombineTransformation(private val transformations: List): Transformation { 6 | 7 | override fun transform(progress: Float, view: View) { 8 | for (transformation in transformations) { 9 | transformation.transform(progress, view) 10 | } 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_apps_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_build_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_border_color_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_archive_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /driftdrawer/src/main/java/com/sdsmdg/aridj/driftdrawer/transformations/ScaleTransformation.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawer.transformations 2 | 3 | import android.view.View 4 | 5 | class ScaleTransformation: Transformation { 6 | 7 | override fun transform(progress: Float, view: View) { 8 | val scale = 1/8f + progress * (1f - 1/8f) 9 | view.scaleX = scale 10 | view.scaleY = scale 11 | 12 | // val scale = 1f + progress * (8f - 1f) 13 | // view.layoutParams.height = (scale*view.layoutParams.height).toInt() 14 | // view.layoutParams.width = (scale*view.layoutParams.width).toInt() 15 | // view.invalidate() 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /app/src/main/java/com/sdsmdg/aridj/driftdrawerdemo/fragments/EditorFragment.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawerdemo.fragments 2 | 3 | import android.os.Bundle 4 | import android.support.v4.app.Fragment 5 | import android.view.LayoutInflater 6 | import android.view.View 7 | import android.view.ViewGroup 8 | import com.sdsmdg.aridj.driftdrawerdemo.R 9 | 10 | 11 | class EditorFragment : Fragment() { 12 | 13 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, 14 | savedInstanceState: Bundle?): View? { 15 | // Inflate the layout for this fragment 16 | return inflater.inflate(R.layout.fragment_editor, container, false) 17 | } 18 | 19 | 20 | } -------------------------------------------------------------------------------- /app/src/main/java/com/sdsmdg/aridj/driftdrawerdemo/fragments/GalleryFragment.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawerdemo.fragments 2 | 3 | 4 | import android.os.Bundle 5 | import android.support.v4.app.Fragment 6 | import android.view.LayoutInflater 7 | import android.view.View 8 | import android.view.ViewGroup 9 | 10 | import com.sdsmdg.aridj.driftdrawerdemo.R 11 | 12 | /** 13 | * A simple [Fragment] subclass. 14 | * 15 | */ 16 | class GalleryFragment : Fragment() { 17 | 18 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, 19 | savedInstanceState: Bundle?): View? { 20 | // Inflate the layout for this fragment 21 | return inflater.inflate(R.layout.fragment_gallery, container, false) 22 | } 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/sdsmdg/aridj/driftdrawerdemo/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawerdemo 2 | 3 | import android.support.test.InstrumentationRegistry 4 | import android.support.test.runner.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getTargetContext() 22 | assertEquals("com.sdsmdg.aridj.driftdrawerdemo", appContext.packageName) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /driftdrawer/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /driftdrawer/src/main/java/com/sdsmdg/aridj/driftdrawer/DriftDrawerLayout.kt: -------------------------------------------------------------------------------- 1 | package com.sdsmdg.aridj.driftdrawer 2 | 3 | import android.content.Context 4 | import android.support.v4.widget.DrawerLayout 5 | 6 | class DriftDrawerLayout(context: Context) : DrawerLayout(context) { 7 | 8 | private lateinit var navLayout: DriftNavLayout 9 | 10 | fun setNavLayout(navLayout: DriftNavLayout) { 11 | this.navLayout = navLayout 12 | } 13 | 14 | override fun openDrawer(gravity: Int) { 15 | navLayout.openDrawer() 16 | } 17 | 18 | override fun closeDrawer(gravity: Int) { 19 | navLayout.closeDrawer() 20 | } 21 | 22 | override fun isDrawerVisible(drawerGravity: Int): Boolean { 23 | return !navLayout.isClosed 24 | } 25 | 26 | override fun getDrawerLockMode(edgeGravity: Int): Int { 27 | return LOCK_MODE_UNLOCKED 28 | } 29 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 16 | 17 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_editor.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 16 | 17 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Arihant Jain 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /driftdrawer/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | apply plugin: 'kotlin-android' 3 | apply plugin: 'kotlin-android-extensions' 4 | apply plugin: 'com.jfrog.bintray' 5 | apply plugin: 'org.jetbrains.dokka-android' 6 | apply plugin: 'maven-publish' 7 | 8 | android { 9 | compileSdkVersion 27 10 | defaultConfig { 11 | minSdkVersion 15 12 | targetSdkVersion 27 13 | versionCode 1 14 | versionName "1.0" 15 | 16 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 17 | 18 | } 19 | 20 | buildTypes { 21 | release { 22 | minifyEnabled false 23 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 24 | } 25 | } 26 | 27 | } 28 | 29 | dependencies { 30 | implementation fileTree(dir: 'libs', include: ['*.jar']) 31 | 32 | implementation 'com.android.support:appcompat-v7:27.1.1' 33 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 34 | } 35 | 36 | dokka { 37 | outputFormat = 'html' 38 | outputDirectory = "$buildDir/javadoc" 39 | } 40 | 41 | apply from: 'deploy.gradle' 42 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | apply plugin: 'kotlin-android' 4 | 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdkVersion 27 9 | defaultConfig { 10 | applicationId "com.sdsmdg.aridj.driftdrawerdemo" 11 | minSdkVersion 15 12 | targetSdkVersion 27 13 | versionCode 1 14 | versionName "1.0" 15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | } 24 | 25 | dependencies { 26 | implementation fileTree(include: ['*.jar'], dir: 'libs') 27 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 28 | implementation 'com.android.support:appcompat-v7:27.1.1' 29 | implementation 'com.android.support:support-v4:27.1.1' 30 | testImplementation 'junit:junit:4.12' 31 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 32 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 33 | implementation 'com.sdsmdg.aridj:driftdrawer:1.0.0' 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_setting.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 |