Flat Ui In Android Studio
Solution 1:
I Just fork a library for AutoCompleteTextView and waiting to be merged.
For now:
Inside library/src/main/java/com/cengalabs/flatui/views create new file name it FlatAutoCompleteTextView.java
Find the FlatEditText.java copy the content and paste it to FlatAutoCompleteTextView.java
Inside FlatAutoCompleteTextView.java replace all text with "FlatEditText" with "FlatAutoCompleteTextView" .
find this part style = a.getInt(R.styleable.fl_FlatAutoCompleteTextView_fl_fieldStyle, 0); and replace with style = a.getInt(R.styleable.fl_FlatAutoCompleteTextView_fl_autoFieldStyle, 0);
Edit library/src/main/res/values/attrs.xml , paste this code inside and save or just replace content with this http://pastebin.com/w4w5UWdd
To use style fl_autoFieldStyle="flat" or fl_autoFieldStyle="box"
Solution 2:
If the Flat UI project does not support AutoCompleteTextView
, your choices are:
Write it yourself.
Convince the author of the library to write it for you.
Hire some other developer to write it for you.
Go without
AutoCompleteTextView
.Go without Flat UI.
Since none of the Flat UI widgets are based on AdapterView
, creating an AutoCompleteTextView
may be rather complicated.
Solution 3:
The merge request from PinoyWebDev (thanks to him) is closed and AutoCompleteTextView is now available in the library. You can see the added class here.
Post a Comment for "Flat Ui In Android Studio"