Answer the question
In order to leave comments, you need to log in
Explain how this Java code from androil SDK works and GC question?
Good
, I want to add something to the AutoCompleteTextView method, but I don’t understand how it works
@Override
public <T extends ListAdapter & Filterable> void setAdapter(T adapter) {
super.setAdapter(adapter);
}
public WorkAutoCompleteTextView(AutoCompleteTextView textView,
Context context) {
test.add(textView);
completeTextView = textView;
this.context = context;
arrayAdapter = new ArrayAdapter(this.context,
android.R.layout.simple_dropdown_item_1line,
GetSQLCursorProductName.getInstance().listName);
completeTextView.setAdapter(arrayAdapter);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question