From 6ea333e482f04e3a39c87e2f16fcf71da6d445a8 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 10 Dec 2019 13:43:55 +0800 Subject: [PATCH] feat:add Hidden --- doric/src/main/java/pub/doric/shader/ViewNode.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doric/src/main/java/pub/doric/shader/ViewNode.java b/doric/src/main/java/pub/doric/shader/ViewNode.java index a5c3137a..3e0f1aa1 100644 --- a/doric/src/main/java/pub/doric/shader/ViewNode.java +++ b/doric/src/main/java/pub/doric/shader/ViewNode.java @@ -344,6 +344,11 @@ public abstract class ViewNode extends DoricContextHolder { setPadding(prop.asObject()); } break; + case "hidden": + if (prop.isBoolean()) { + getNodeView().setVisibility(prop.asBoolean().value() ? View.GONE : View.VISIBLE); + } + break; default: break; }