From b6738d63575d53a718ae7c59f204100447bb8934 Mon Sep 17 00:00:00 2001 From: yimiao Date: Mon, 26 Jul 2021 11:51:43 +0800 Subject: [PATCH] =?UTF-8?q?author:wangyimiao=20desc:=E6=B8=85=E7=90=86?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=8D=8F=E7=A8=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/commonlibtest/MainActivity.java | 2 ++ app/src/main/res/layout/activity_main.xml | 19 ++++++++++++++++--- .../commonlib/image/loader/ImageLoader.kt | 10 ++++++---- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/common/commonlibtest/MainActivity.java b/app/src/main/java/com/common/commonlibtest/MainActivity.java index f39b57e..c681af4 100644 --- a/app/src/main/java/com/common/commonlibtest/MainActivity.java +++ b/app/src/main/java/com/common/commonlibtest/MainActivity.java @@ -69,6 +69,8 @@ public class MainActivity extends AppCompatActivity { }); }); + binding.clearBtn.setOnClickListener(l -> ImageLoader.INSTANCE.clearAllCache(MainActivity.this)); + binding.btn.setOnClickListener(l -> { List interceptors = new ArrayList<>(); RequestHeadInterceptor.Builder builder = new RequestHeadInterceptor.Builder(); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 5271a83..383b4a4 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -15,7 +15,7 @@ app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.2" /> - + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.53" />