It's surprising that I couldn't find anything on this subject. What's the method for generating a ListView on the fly when a '@' is detected in the EditText. Here's an example:
This is what I have so far:
textfield.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
String newtext= textfield.getText().toString();
if(newtext.equals("@"))
{
//ListView with people need to appear
}
return false;
}
});
I know how to code the adapter, I need to display the ListView on the fly.