Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] Anyone created already a FloatingText widgets for SWT?

Hello, my fellow Nebula developers,

Looking at the awesome new editions from Laurent to the Nebula library
(many thanks to Laurent for that) triggered a desire for a new SWT
widget. ;-)

Did someone in this group already created a "FloatingText" widget? In
such a widget the message hint in the text fields animates to the top
of the input field as soon as the user gives focus to it.

This is heavily used in Android. See
https://www.androidhive.info/2015/09/android-material-design-floating-labels-for-edittext/
or an example video. IMHO it creates a very nice experience for users
as it allows very condense UIs. Eclipse UIs could benefit quite a bit
from that in my opinion.

My current (lame) implementation is a compound composite wrapping a
label and a text field and moving the content of the text field to the
label once the user gives focus to the text field.  I'm happy to share
it, but it is really trivial and misses the animation.

Did someone already created such a FloatingText" widget? If not would
my trivial widget interesting for Nebula, maybe as a starting point
for something more advanced? If yes, could you share your
implementation?

Best regards, Lars


-- 
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top