APWidgets updated. Work done on PVideoView and PEditText + new examples
in
Android Processing
•
2 years ago
I've made some additions to
APWidgets which is now on
r30. Work has been done to PVideoView, and there is now also an example in the wiki on how to use PVideoView to play video.
PEditText also have new features. You can now set the InputType to control what type of soft keyboard will appear like, numerical, text and phone etc. See the InputType class. You can also set the ImeOptions to specify more features, like IME_ACTION_DONE that turns the return button into a "Done" button. If you have done this the onClickWidget in your sketch method will be called when you press Done allowing you to capture that event. Also, if you set setCloseImeOnDone to true, the soft keyboard will close when you press done. See EditorInfo for more alternatives.
If you state IME_ACTION_NEXT in setImeOptions the return button is replaced with a "Next"-button, which means that focus will go on to the EditText below without closing the keyboard. Focus will always go to the EditText below the current EditText, unless you call setNextEditText which allows you to specify which EditText will be the next.
A new example PEditText_Advanced_example has been added to explain the new features.
See the examples in the wiki:
http://code.google.com/p/apwidgets/w/list
PEditText also have new features. You can now set the InputType to control what type of soft keyboard will appear like, numerical, text and phone etc. See the InputType class. You can also set the ImeOptions to specify more features, like IME_ACTION_DONE that turns the return button into a "Done" button. If you have done this the onClickWidget in your sketch method will be called when you press Done allowing you to capture that event. Also, if you set setCloseImeOnDone to true, the soft keyboard will close when you press done. See EditorInfo for more alternatives.
If you state IME_ACTION_NEXT in setImeOptions the return button is replaced with a "Next"-button, which means that focus will go on to the EditText below without closing the keyboard. Focus will always go to the EditText below the current EditText, unless you call setNextEditText which allows you to specify which EditText will be the next.
A new example PEditText_Advanced_example has been added to explain the new features.
See the examples in the wiki:
http://code.google.com/p/apwidgets/w/list
1