Android: add h & v scroll bar enable for input

This commit is contained in:
王劲鹏 2021-07-29 16:29:13 +08:00 committed by osborn
parent 729952fe2a
commit d0c5161365

View File

@ -380,6 +380,18 @@ public class InputNode extends ViewNode<EditText> implements TextWatcher, View.O
} }
}); });
break; 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: default:
super.blend(view, name, prop); super.blend(view, name, prop);
break; break;