<dependency> <groupId>com.example</groupId> <artifactId>next-inputs</artifactId> <version>1.0.0</version> </dependency> public class MyInputListener implements InputListener { @Override public void onInput(TextInput input) { } } public class MyTextInput extends TextInput { public MyTextInput(String label) { super(label); } } html <div> <input type="text" id="myInput" /> </div> NextInputs.activate(); InputComponent inputComponent = findViewById(R.id.myInput); inputComponent.setInputListener(new MyInputListener());


上一篇:
下一篇:
切换中文