From f6029de3ad72a132e390dbd0af9b77cb3d7eb48a Mon Sep 17 00:00:00 2001 From: "16167479@qq.com" <16167479@qq.com> Date: Thu, 28 Apr 2022 17:00:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=92=8C=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E6=8A=BD=E5=8F=96=E4=B8=BA=E5=8F=AF=E8=A6=86=E7=9B=96=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- app/src/main/AndroidManifest.xml | 6 ++++-- build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.jar | Bin 54417 -> 54329 bytes gradle/wrapper/gradle-wrapper.properties | 3 ++- statelayout-library/build.gradle | 14 ++------------ .../java/com/lxj/statelayout/StateLayout.kt | 4 ++-- .../main/res/layout/_loading_layout_empty.xml | 11 +++++------ .../main/res/layout/_loading_layout_error.xml | 6 +++--- .../src/main/res/values-en/strings.xml | 4 ++-- .../src/main/res/values/colors.xml | 4 ++++ .../src/main/res/values/strings.xml | 4 ++-- 12 files changed, 30 insertions(+), 34 deletions(-) create mode 100644 statelayout-library/src/main/res/values/colors.xml diff --git a/app/build.gradle b/app/build.gradle index 28cd0d7..86a38fa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,11 +5,11 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 30 + compileSdkVersion 31 defaultConfig { applicationId "com.lxj.demo1" minSdkVersion 19 - targetSdkVersion 28 + targetSdkVersion 31 versionCode 1 versionName "1.0" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 80bf7b5..b4d3012 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,8 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> - + @@ -17,7 +18,8 @@ - + \ No newline at end of file diff --git a/build.gradle b/build.gradle index d1f0ee3..d8a08b8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,13 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.3.41' + ext.kotlin_version = '1.5.0' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' + classpath 'com.android.tools.build:gradle:4.2.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 758de960ec7947253b058ff79c88ce51f3abe08a..f6b961fd5a86aa5fbfe90f707c3138408be7c718 100644 GIT binary patch delta 7527 zcmZ9R1x#F9_qSnicXulc?yf}(6dk0vyZc~+d$GaY-3n72TD-Wng<{36#a;jXnwxvy zd?z`{^Q_;>$vQhHImzBB)d(F`2+2ZdEN_QzrQqP;Kq=DNDA{KoXCCly$>bke%{kEW zYe{bxkm2A2p|qUrkN`qGvS9UV-f^1{Tmv^lyIF-rb}Woy4YW{nG-ugNX^Pi~mfp=` zPROtLj()Lc)?7ukwK~-5mOJ!-;(e=AnFyVa>VMqFzl40c*SoDc5o*a@b;>~91z+ch ztOsV^1g?v%i+~^28+(z>D4ts}4Nu!KY0@@ic}aOyN0Zg*A@O0ze6fgX4lJ)y8u7V^f&}%mO4uz`^vA6Lw-Qo5uGH1}vU$a+^|3w-WK=eF_MX>O$GLV)wcAcp zh*T6(L7XBKYUMaiM49U?hWO;vi-q?5hn!~l&|9-5j>yVW53HH{!By|ludBatTh1%I zB<5SDlSLkLXE_TG{URmGqsQ8OhUpwH)igC2r{Pupf>5+__=jg$-USeGmSt)gWkvYZ z-kZ4kYsYKeP;19vcOcmWSx| z+-U`!P#CBplekzlnu)n_x@Iuiyc^K#h`e_RucIjtwccf#Yv!rl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$>c1yyw=5SK@5AmI| zx0{+c?d2X*mtQ^EL0h@5loIFY6@KKtT%XUD;P!3ey)^9Cc~$gtTIr$4(rLGu#CWZ= z%bJAS?Da3R{xh>;HFszAIkv)=G`6lDwwas~=^CD!`(g)=bW_Ae(9ibNZyxn#Lnt!g zdj*o7Si|z2Zug75FVBS5zGK$-DGPc(sTmb`1bCy0jRTLBHzWVsStCPsbiVrkLoVdg zE-j2NNV_gRjCN#Nmng>WL$7VSivvi9f$ZoeN2+0fkfkURq;@w5sE_qmqC>`FVIvLt zNRZ0dB=~xKc0gtrQZ|?d zX*4JcY;<~nEp5aPnb|=Qkm~(|bmL5bq#fb_GI;)_%t*%}J|KbD13dQxAs7BSIo=PH z6Ab|-`8_~{AN5~{1X+&;0p~tGNWak@6ok=))EqSjW~Khej86Smo&*UT0|7sLd5~qt zB!DBC53nJV?(a|zAYtxb%7i2w=LPQ8AggQGkhbF-z^>-MkO}#}4@!a@8wUXg+K@4A skcX)dn*d>CAhjoKFy14ZC-|xV^M?Li)o1^;vK>gANlq-9u78RD11A({R{#J2 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0ebb310..bff4ad5 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Wed Dec 18 19:13:30 CST 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip diff --git a/statelayout-library/build.gradle b/statelayout-library/build.gradle index a7a2485..5c0223a 100644 --- a/statelayout-library/build.gradle +++ b/statelayout-library/build.gradle @@ -2,11 +2,11 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 28 + compileSdkVersion 31 defaultConfig { minSdkVersion 19 - targetSdkVersion 28 + targetSdkVersion 31 versionCode 1 versionName "1.0" } @@ -24,13 +24,3 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.3.1' } - -//publish { -// userOrg = 'li-xiaojun' -// groupId = 'com.lxj' -// artifactId = 'statelayout' -// publishVersion = '1.2.2' -// repoName = 'jrepo' -// desc = 'Simple way to change your layout state, like loading, _statelayout_empty, _statelayout_error. Strong customizitaion, written by Kotlin!' -// website = 'https://github.com/li-xiaojun/StateLayout' -//} \ No newline at end of file diff --git a/statelayout-library/src/main/java/com/lxj/statelayout/StateLayout.kt b/statelayout-library/src/main/java/com/lxj/statelayout/StateLayout.kt index 5c4f7d5..ba9fc8c 100644 --- a/statelayout-library/src/main/java/com/lxj/statelayout/StateLayout.kt +++ b/statelayout-library/src/main/java/com/lxj/statelayout/StateLayout.kt @@ -171,10 +171,10 @@ class StateLayout @JvmOverloads constructor(context: Context, attributeSet: Attr private fun switch(v: View?) { if (switchTask != null) { - mHandler.removeCallbacks(switchTask) + mHandler.removeCallbacks(switchTask!!) } switchTask = SwitchTask(v) - mHandler.post(switchTask) + mHandler.post(switchTask!!) } private fun retry() { diff --git a/statelayout-library/src/main/res/layout/_loading_layout_empty.xml b/statelayout-library/src/main/res/layout/_loading_layout_empty.xml index f0214dd..b1aa33d 100644 --- a/statelayout-library/src/main/res/layout/_loading_layout_empty.xml +++ b/statelayout-library/src/main/res/layout/_loading_layout_empty.xml @@ -3,15 +3,14 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:paddingBottom="30dp" android:gravity="center" android:orientation="vertical"> + android:textColor="@color/_statelayout_hint_color" + android:textSize="14sp" + android:text="@string/_statelayout_nodata"/> \ No newline at end of file diff --git a/statelayout-library/src/main/res/layout/_loading_layout_error.xml b/statelayout-library/src/main/res/layout/_loading_layout_error.xml index 19f2369..f245a6b 100644 --- a/statelayout-library/src/main/res/layout/_loading_layout_error.xml +++ b/statelayout-library/src/main/res/layout/_loading_layout_error.xml @@ -18,9 +18,9 @@ android:layout_gravity="center" android:paddingLeft="14dp" android:paddingRight="14dp" - android:textSize="12sp" + android:textSize="14sp" android:layout_marginTop="15dp" - android:text="@string/load_failed_try_again" - android:textColor="#444"/> + android:text="@string/_statelayout_load_failed" + android:textColor="@color/_statelayout_hint_color"/> \ No newline at end of file diff --git a/statelayout-library/src/main/res/values-en/strings.xml b/statelayout-library/src/main/res/values-en/strings.xml index b025638..951c5a2 100644 --- a/statelayout-library/src/main/res/values-en/strings.xml +++ b/statelayout-library/src/main/res/values-en/strings.xml @@ -1,5 +1,5 @@ - Load failed, try again - No Data + Click to retry + No Data \ No newline at end of file diff --git a/statelayout-library/src/main/res/values/colors.xml b/statelayout-library/src/main/res/values/colors.xml new file mode 100644 index 0000000..e56f2de --- /dev/null +++ b/statelayout-library/src/main/res/values/colors.xml @@ -0,0 +1,4 @@ + + + #656565 + \ No newline at end of file diff --git a/statelayout-library/src/main/res/values/strings.xml b/statelayout-library/src/main/res/values/strings.xml index 40703b3..deb3c16 100644 --- a/statelayout-library/src/main/res/values/strings.xml +++ b/statelayout-library/src/main/res/values/strings.xml @@ -1,5 +1,5 @@ - 加载失败,点击重试 - 暂无数据 + 点击重试 + 暂无数据 \ No newline at end of file