feat:add Hidden
This commit is contained in:
parent
5ca914fda3
commit
6ea333e482
@ -344,6 +344,11 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
|
|||||||
setPadding(prop.asObject());
|
setPadding(prop.asObject());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "hidden":
|
||||||
|
if (prop.isBoolean()) {
|
||||||
|
getNodeView().setVisibility(prop.asBoolean().value() ? View.GONE : View.VISIBLE);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user