From 10a8f42c85a1bb060286b8de23fdb4355d759ac7 Mon Sep 17 00:00:00 2001 From: b1urrrr Date: Sat, 13 May 2023 01:39:01 +0900 Subject: [PATCH] =?UTF-8?q?[ADD/#8]=20placeholder=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/android/go/sopt/util/binding/BindingAdapter.kt | 4 ++-- app/src/main/res/drawable/ic_loading.xml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/ic_loading.xml diff --git a/app/src/main/java/org/android/go/sopt/util/binding/BindingAdapter.kt b/app/src/main/java/org/android/go/sopt/util/binding/BindingAdapter.kt index f2a584e..2b254fa 100644 --- a/app/src/main/java/org/android/go/sopt/util/binding/BindingAdapter.kt +++ b/app/src/main/java/org/android/go/sopt/util/binding/BindingAdapter.kt @@ -11,7 +11,7 @@ object BindingAdapter { @BindingAdapter("setRoundedCornersImage") fun ImageView.setRoundedCornersImage(img: String?) { load(img) { - placeholder(R.mipmap.ic_go_sopt) + placeholder(R.drawable.ic_loading) error(R.drawable.ic_image_not_supported) fallback(R.drawable.ic_image_not_supported) transformations(RoundedCornersTransformation(50f)) @@ -22,7 +22,7 @@ object BindingAdapter { @BindingAdapter("setCircleImage") fun ImageView.setCircleImage(img: String?) { load(img) { - placeholder(R.mipmap.ic_go_sopt) + placeholder(R.drawable.ic_loading) error(R.drawable.ic_image_not_supported) fallback(R.drawable.ic_image_not_supported) transformations(RoundedCornersTransformation(1000f)) diff --git a/app/src/main/res/drawable/ic_loading.xml b/app/src/main/res/drawable/ic_loading.xml new file mode 100644 index 0000000..fd59447 --- /dev/null +++ b/app/src/main/res/drawable/ic_loading.xml @@ -0,0 +1,5 @@ + + +