From d0c51613651f0024428d330c751eed3fe26f62fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Thu, 29 Jul 2021 16:29:13 +0800 Subject: [PATCH] Android: add h & v scroll bar enable for input --- .../src/main/java/pub/doric/shader/InputNode.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java b/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java index 8aea2b32..43d0a47b 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java @@ -380,6 +380,18 @@ public class InputNode extends ViewNode implements TextWatcher, View.O } }); break; + case "enableHorizontalScrollBar": + if (!prop.isBoolean()) { + return; + } + view.setHorizontalScrollBarEnabled(prop.asBoolean().value()); + break; + case "enableVerticalScrollBar": + if (!prop.isBoolean()) { + return; + } + view.setVerticalScrollBarEnabled(prop.asBoolean().value()); + break; default: super.blend(view, name, prop); break;