EurekaCommunity / GooglePlacesRow

This repository aims to create a row for Eureka with autocomplete from Google Places
MIT License
60 stars 12 forks source link

Floating label advice #9

Open dneykov opened 7 years ago

dneykov commented 7 years ago

Hi, I tried to make GooglePlacesAccessoryRow with floating label but without success. Can somebody give me an advice how can I achieve that? Thanks in advance.

mats-claassen commented 7 years ago

I guess this can be difficult. The times I used a Floating label, I had to change the class of the textfield which meant I had to create the cell from scratch without subclassing _FieldCell. This means a lot of repeated code as I wanted all of the functionality of _FieldCell. I am not sure if you can get around that.

dneykov commented 7 years ago

Thanks for explanation. So I should assume switching to generic TextFields in my app

mats-claassen commented 7 years ago

Eureka 3.0 supports creating almost all cells from nib files so that it might be easier when we adapt GooglePlacesRow to that version (should be soon). With that it could be possible to implement the floating label easier.

dimidrollko commented 7 years ago

@mats-claassen Is it possible now to provide custom NIB file?

mats-claassen commented 6 years ago

I added an example with a custom Nib file in #27. You can see it running the Examples