APWidgets - APTextView and APEditText questions
in
Android Processing
•
1 year ago
Hi there - I've just started working with APWidgets and I have 2 questions:
(1) Is there a way to show light gray text on an "empty" APEditText widget? Something like "Enter name". The setText method will place text in the field, but I'm looking for more of a subtle background text to serve as a user prompt (one that the user does not need to erase when typing).
(2) I can't seem to get the APTextView widget to work. Although I can get no error information in Android mode, when using standard mode to debug I get this error message: cannot instantiate the type APTextView. All I want is a widget to display non-editable text.
APWidgetContainer container;
APTextView textField;
container = new APWidgetContainer( this );
textField = new APTextView( 0, 50, width/2, 50,"Hello" );
container.addWidget( textField );
APTextView textField;
container = new APWidgetContainer( this );
textField = new APTextView( 0, 50, width/2, 50,"Hello" );
container.addWidget( textField );
Thanks in advance!
1