├── app ├── .gitignore ├── src │ ├── .DS_Store │ ├── main │ │ ├── .DS_Store │ │ ├── res │ │ │ ├── .DS_Store │ │ │ ├── drawable-nodpi │ │ │ │ ├── logo.png │ │ │ │ ├── .DS_Store │ │ │ │ ├── flash_off.png │ │ │ │ ├── flash_on.png │ │ │ │ ├── img_geo.png │ │ │ │ ├── img_mail.png │ │ │ │ ├── img_sms.png │ │ │ │ ├── img_tel.png │ │ │ │ ├── img_url.png │ │ │ │ ├── img_wifi.png │ │ │ │ ├── img_wood.png │ │ │ │ ├── img_bear_1.png │ │ │ │ ├── img_bear_2.png │ │ │ │ ├── img_bird_1.png │ │ │ │ ├── img_bird_2.png │ │ │ │ ├── img_calendar.png │ │ │ │ ├── img_contactor.png │ │ │ │ ├── img_elephant.png │ │ │ │ ├── img_geo_press.png │ │ │ │ ├── img_mail_press.png │ │ │ │ ├── img_sms_press.png │ │ │ │ ├── img_tel_press.png │ │ │ │ ├── img_url_press.png │ │ │ │ ├── img_wifi_press.png │ │ │ │ ├── img_calendar_press.png │ │ │ │ └── img_contactor_press.png │ │ │ ├── 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 │ │ │ ├── layout │ │ │ │ ├── activity_setting.xml │ │ │ │ ├── activity_type_generate.xml │ │ │ │ ├── activity_scan.xml │ │ │ │ ├── item_type.xml │ │ │ │ ├── activity_generate.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── dialog_web.xml │ │ │ │ ├── dialog_tel.xml │ │ │ │ ├── dialog_mail.xml │ │ │ │ ├── dialog_sms.xml │ │ │ │ ├── dialog_geo.xml │ │ │ │ ├── dialog_wifi.xml │ │ │ │ └── activity_result.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── colors.xml │ │ │ │ └── strings.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── values-zh-rTW │ │ │ │ └── strings.xml │ │ │ └── drawable │ │ │ │ ├── btn_style_circle_yellow.xml │ │ │ │ ├── btn_style_result.xml │ │ │ │ └── ic_launcher_background.xml │ │ ├── assets │ │ │ └── fonts │ │ │ │ └── font.ttf │ │ ├── java │ │ │ └── com │ │ │ │ └── showlin │ │ │ │ └── simpleQRCode │ │ │ │ ├── ShowApplication.kt │ │ │ │ ├── activity │ │ │ │ ├── BaseActivity.kt │ │ │ │ ├── ScanActivity.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ ├── ResultActivity.kt │ │ │ │ ├── GenerateActivity.kt │ │ │ │ └── TypeGenerateActivity.kt │ │ │ │ └── Utility.kt │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── showlin │ │ │ └── simpleQRCode │ │ │ └── ExampleUnitTest.kt │ └── androidTest │ │ └── java │ │ └── com │ │ └── showlin │ │ └── simpleQRCode │ │ └── ExampleInstrumentedTest.kt ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── vcs.xml ├── modules.xml ├── runConfigurations.xml └── misc.xml ├── README.md ├── gradle.properties ├── .gitignore ├── gradlew.bat ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/.DS_Store -------------------------------------------------------------------------------- /app/src/main/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/.DS_Store -------------------------------------------------------------------------------- /app/src/main/res/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/.DS_Store -------------------------------------------------------------------------------- /app/src/main/assets/fonts/font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/assets/fonts/font.ttf -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/.DS_Store -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/flash_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/flash_off.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/flash_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/flash_on.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_geo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_geo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_mail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_mail.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_sms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_sms.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_tel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_tel.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_url.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_wifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_wifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_wood.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_wood.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_bear_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_bear_1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_bear_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_bear_2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_bird_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_bird_1.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_bird_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_bird_2.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_calendar.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_contactor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_contactor.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_elephant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_elephant.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_geo_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_geo_press.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_mail_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_mail_press.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_sms_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_sms_press.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_tel_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_tel_press.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_url_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_url_press.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_wifi_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_wifi_press.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/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/LinHsiu/zxing-kotlin-simple/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/LinHsiu/zxing-kotlin-simple/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/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_calendar_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_calendar_press.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/img_contactor_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/drawable-nodpi/img_contactor_press.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinHsiu/zxing-kotlin-simple/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zxing-kotlin-simple 2 | A simple qr code scan and generate. 3 | 4 | ### Reference 5 | Zxing https://github.com/zxing/zxing/ 6 | 7 | zxing-android-embedded https://github.com/journeyapps/zxing-android-embedded#custom-layout 8 | -------------------------------------------------------------------------------- /app/src/main/java/com/showlin/simpleQRCode/ShowApplication.kt: -------------------------------------------------------------------------------- 1 | package com.showlin.simpleQRCode 2 | 3 | 4 | import android.app.Application 5 | 6 | class ShowApplication : Application() { 7 | override fun onCreate() { 8 | super.onCreate() 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_setting.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 31 11:45:18 CST 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.1-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 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/showlin/simpleQRCode/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.showlin.simpleQRCode 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 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_type_generate.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #53C0F0 4 | #51A2D9 5 | #8A140E 6 | #E0E8F0 7 | #89E5F3 8 | #FFFFFF 9 | 10 | #94d0b4 11 | #f9ca5e 12 | #e7bb5a 13 | #f0716a 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_scan.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 18 | 19 | -------------------------------------------------------------------------------- /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/showlin/simpleQRCode/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.showlin.simpleQRCode 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.showlin.zxing_kotlin_simple", 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 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_type.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # Intellij 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/dictionaries 41 | .idea/libraries 42 | 43 | # Keystore files 44 | *.jks 45 | 46 | # External native build folder generated in Android Studio 2.2 and later 47 | .externalNativeBuild 48 | 49 | # Google Services (e.g. APIs or Firebase) 50 | google-services.json 51 | 52 | # Freeline 53 | freeline.py 54 | freeline/ 55 | freeline_project_description.json 56 | -------------------------------------------------------------------------------- /app/src/main/java/com/showlin/simpleQRCode/activity/BaseActivity.kt: -------------------------------------------------------------------------------- 1 | package com.showlin.simpleQRCode.activity 2 | 3 | import android.os.Build 4 | import android.os.Bundle 5 | import android.support.v4.content.ContextCompat 6 | import android.support.v7.app.AppCompatActivity 7 | import android.view.View 8 | import android.view.WindowManager 9 | import com.showlin.simpleQRCode.R 10 | 11 | open class BaseActivity : AppCompatActivity(){ 12 | override fun onCreate(savedInstanceState: Bundle?) { 13 | super.onCreate(savedInstanceState) 14 | val window = this.window 15 | window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) 16 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { 17 | window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) 18 | window.statusBarColor = ContextCompat.getColor(this, R.color.colorPrimary) 19 | } 20 | window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN 21 | } 22 | } -------------------------------------------------------------------------------- /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 26 9 | defaultConfig { 10 | applicationId "com.showlin.zxing_kotlin_simple" 11 | minSdkVersion 19 12 | targetSdkVersion 26 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-jre7:$kotlin_version" 28 | implementation 'com.android.support:appcompat-v7:26.1.0' 29 | implementation 'com.android.support.constraint:constraint-layout:1.0.2' 30 | testImplementation 'junit:junit:4.12' 31 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 32 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 33 | compile 'com.journeyapps:zxing-android-embedded:3.5.0@aar' 34 | compile 'com.google.zxing:core:3.3.0' 35 | implementation 'com.android.support:recyclerview-v7:26.1.0' 36 | } 37 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_generate.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 17 | 18 |