Closed squeeish closed 8 years ago
What is your need exactly? Allow the user to type anything and when he types {fa-something}
the icon appear instead? I don't think that would be a good user experience.
Nope, what I meant was to have something like:
<AutoCompleteTextView
android:id="@+id/actvSearch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_search_with_icon
/>
Where <string name="hint_search_with_icon">{fa-search} Search</string>
I could do a drawableLeft and all that, but I was just wondering if this was possible :)
Oh I see, you meant for the hint. It's definitely possible, I think all you have to do is to subclass AutoCompleteTextView
and override setHint(CharSequence)
like this.
Also, you might want to consider this lib: https://github.com/DayS/EnhancedEditText/
@squeeish Does that answer you question?
@JoanZapata my apologies, been busy these few days. I'll try it out now and update! :)
No worry, I was just checking :)
Closed due to inactivity.
Has anyone found a way to do that?