From efdd1ea173d259412afa157e534c6897c9707c49 Mon Sep 17 00:00:00 2001 From: Kale Date: Sat, 28 Apr 2018 11:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86isSmart=E6=94=B9=E5=90=8D=E4=B8=BAsmar?= =?UTF-8?q?tColor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kale/selectorinjection/ImageFragment.java | 2 +- app/src/main/res/layout/image_layout.xml | 2 -- .../java/kale/injection/SelectorInjection.java | 18 ++++++------------ lib/src/main/res/values/attrs.xml | 2 +- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/kale/selectorinjection/ImageFragment.java b/app/src/main/java/kale/selectorinjection/ImageFragment.java index 8ce089e..b79715f 100644 --- a/app/src/main/java/kale/selectorinjection/ImageFragment.java +++ b/app/src/main/java/kale/selectorinjection/ImageFragment.java @@ -66,7 +66,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { injection.pressed.strokeWidth = 10; break; case R.id.isSmart_cb: - injection.isSmart = checked; + injection.smartColor = checked; // 如果不是smart模式,并且没有设置按下的颜色 if (!checked && !((CompoundButton) getView().findViewById(R.id.pressed_color_cb)).isChecked()) { injection.pressed.color = SelectorInjection.DEFAULT_COLOR; diff --git a/app/src/main/res/layout/image_layout.xml b/app/src/main/res/layout/image_layout.xml index 60e155a..802a1c6 100644 --- a/app/src/main/res/layout/image_layout.xml +++ b/app/src/main/res/layout/image_layout.xml @@ -28,8 +28,6 @@ app:pressedStrokeColor="#259b24" app:pressedStrokeWidth="8dp" - - preview:isPressed="false" /> - +