You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.
I would like to ask for an annotation for the AutocompleteTextView.
The purpose of the annotation is to make more straightforward the use of a AutocompleteTextview. Could be something like the current @Click annotation. Using the id of the view as name of the method, one parameter for the View and another for the position of the item clicked, and passing the String collection List<String> with the resource next to the annotation.
@AutoComplete(collection = myStringCollection, resource = R.layout.list_item_green_bg)
void asUsualTheId(View view, int position) {
//Do something when the item is clicked, like setting it as text to the view
view.setTextColor(ContextCompat.getColor(getApplicationContext, R.color.colorPrimary));
if (myStringCollection.get(position).equals(MY_CONSTANT)) {
//DO something with the position
}
}
Above, the params pass next to the annotations are based in the @Receiver.
Thanks.
The text was updated successfully, but these errors were encountered:
I was very excited about doing it so. I start watching how the annotations was made an try to understand what AA does in the background to make or life easier. Sadly, Im not skilled enough yet to endeavour in such a task. Couldnt figure it out my way arround. Sorry I wont be able to contribute.
Greetings
I would like to ask for an annotation for the AutocompleteTextView.
The purpose of the annotation is to make more straightforward the use of a AutocompleteTextview. Could be something like the current
@Click
annotation. Using the id of the view as name of the method, one parameter for the View and another for the position of the item clicked, and passing the String collectionList<String>
with the resource next to the annotation.Above, the params pass next to the annotations are based in the
@Receiver
.Thanks.
The text was updated successfully, but these errors were encountered: