weddingparty / AndroidFloatLabel

Float Label Edit Texts for Android
Apache License 2.0
425 stars 49 forks source link

Android L feature? #11

Open jpshelley opened 10 years ago

jpshelley commented 10 years ago

Will this be a default feature in Android L basically then? Has anyone tried it? Wondering the best way to accommodate for 4.0 up to L.

kaushikgopal commented 10 years ago

@jpshelley as far as i know this is not a default on Android L. In fact I don't think the current version of AndroidFlatLabel shows up in Android L. This is a wip unless someone else sends in a pull request for compatible changes. I'll work on this when i can squeeze the time.

jpshelley commented 10 years ago

Hmm it seems like it might be though? http://www.google.com/design/spec/components/text-fields.html#text-fields-floating-labels Unless this is only a design suggestion and not a core feature.

kaushikgopal commented 10 years ago

Ah thanks for that. I also found this reddit thread that says it's coming to Android L - http://www.reddit.com/r/androiddev/comments/293j59/is_google_bringing_floating_labels_to_the/

If they pack it into the support library, then maybe it might make sense to retire the library. But a lot of the other UI niceties from L aren't being back ported via the support library. If it's not back ported then will still have to deal with a mechanism of adapting based on API levels. urgh.

On Fri, Oct 3, 2014 at 5:25 PM, John Shelley notifications@github.com wrote:

Hmm it seems like it might be though?

http://www.google.com/design/spec/components/text-fields.html#text-fields-floating-labels Unless this is only a design suggestion and not a core feature.

— Reply to this email directly or view it on GitHub https://github.com/weddingparty/AndroidFloatLabel/issues/11#issuecomment-57886943 .

SleeplessByte commented 9 years ago

Don't forget that custom EditText fields are currently not styled by Android L Support Library, so you could just use this before v21 anyway.

What happens on Android L itself is left for someone else to answer.

jpshelley commented 9 years ago

I know there is a bunch of libraries, but just wanted to include this link: https://gist.github.com/chrisbanes/11247418 since Chris Banes is one of the head Android Devs and its his code.