Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created March 17, 2016 14:59
Show Gist options
  • Save codenameone/54e919b2be01561ac91c to your computer and use it in GitHub Desktop.
Save codenameone/54e919b2be01561ac91c to your computer and use it in GitHub Desktop.
Codename Ones FloatingHint animates the text components hint label into a component title on top while editing
Form hi = new Form("Floating Hint", BoxLayout.y());
TextField first = new TextField("", "First Field");
TextField second = new TextField("", "Second Field");
hi.add(new FloatingHint(first)).
add(new FloatingHint(second)).
add(new Button("Go"));
hi.show();
@codenameone
Copy link
Author

Sample usage of FloatingHint.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment