feat:add Hidden

This commit is contained in:
pengfei.zhou 2019-12-10 13:43:55 +08:00
parent 5ca914fda3
commit 6ea333e482

View File

@ -344,6 +344,11 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
setPadding(prop.asObject());
}
break;
case "hidden":
if (prop.isBoolean()) {
getNodeView().setVisibility(prop.asBoolean().value() ? View.GONE : View.VISIBLE);
}
break;
default:
break;
}