diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index ce889bd..a88ded0 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,5 +1,8 @@ + + diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 07396e1..5b28096 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -11,6 +11,7 @@ diff --git a/app/build.gradle b/app/build.gradle index 0316195..fb4ee2f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,7 +46,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "androidx.appcompat:appcompat:${appcompact_version}" - implementation 'androidx.appcompat:appcompat:1.0.2' + implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation "junit:junit:${junit_version}" implementation "androidx.constraintlayout:constraintlayout:${constraintlayout_version}" @@ -56,12 +56,6 @@ dependencies { implementation 'com.android.support:multidex:1.0.3' -// implementation "com.github.SunnyQjm.quickandroid:quick_android_base:${quick_android_version}" -// implementation "com.github.SunnyQjm.quickandroid:quick_android_mvp:${quick_android_version}" -// implementation "com.github.SunnyQjm.quickandroid:quick_android_qrcode:${quick_android_version}" -// implementation "com.github.SunnyQjm.quickandroid:quick_android_image_picker:${quick_android_version}" -// implementation "com.github.SunnyQjm.quickandroid:quick_android_rx_permission:${quick_android_version}" - implementation project(path: ':quick_android_base') implementation project(path: ':quick_android_mvp') implementation project(path: ':quick_android_qrcode') @@ -69,4 +63,5 @@ dependencies { implementation project(path: ':quick_android_rx_permission') implementation project(path: ':quick_android_webview') implementation project(path: ':quick_android_custom_view') + implementation project(path: ':quick_android_easy_bar') } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 31bb357..5c53fef 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,9 +1,12 @@ + xmlns:tools="http://schemas.android.com/tools" + package="cn.qjm253.quick_android"> + + + + - - - - - - - + android:theme="@style/Theme.AppCompat.Light.NoActionBar" + tools:replace="android:label" + android:requestLegacyExternalStorage="true" + > + + + - + - + diff --git a/app/src/main/java/cn/qjm253/quick_android/MainActivity.kt b/app/src/main/java/cn/qjm253/quick_android/MainActivity.kt index 1b007dd..2acebaa 100644 --- a/app/src/main/java/cn/qjm253/quick_android/MainActivity.kt +++ b/app/src/main/java/cn/qjm253/quick_android/MainActivity.kt @@ -9,13 +9,14 @@ import cn.qjm253.quick_android_base.base.activity.BaseQuickAndroidActivity import cn.qjm253.quick_android_base.extensions.* import cn.qjm253.quick_android_base.util.ContentUriUtil import cn.qjm253.quick_android_base.util.RxSchedulersHelper +import cn.qjm253.quick_android_easy_bar.EasyBar +import cn.qjm253.quick_android_easy_bar.init import cn.qjm253.quick_android_image_picker.openWechatStyleGallery import cn.qjm253.quick_android_image_picker.startClipImage import cn.qjm253.quick_android_qrcode.scanCode import cn.qjm253.quick_android_rx_permission.QuickAndroidRxPermission import com.qingmei2.rximagepicker_extension.MimeType import com.qingmei2.rximagepicker_extension_wechat.WechatConfigrationBuilder -import com.qingmei2.rximagepicker_extension_zhihu.ZhihuConfigurationBuilder import kotlinx.android.synthetic.main.activity_main.* class MainActivity : BaseQuickAndroidActivity() { @@ -25,6 +26,12 @@ class MainActivity : BaseQuickAndroidActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) + easyBar.init( + mode = EasyBar.Mode.NONE, + title = "QuickAndroid" + ) + + mvpDemoBtn.setOnClickListener { jumpTo(MVPDemoActivity::class.java) } @@ -46,7 +53,6 @@ class MainActivity : BaseQuickAndroidActivity() { }, { "complete".i() }) -// easyRequestPermissions(arrayOf(Manifest.permission.CAMERA), R.string.camera_permission_require, 2) } btnWechatStyleImagePicker.setOnClickListener { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 461c2b6..46bff7d 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,48 +1,81 @@ - + + +