there i am trying to write code for authorisation activity. When i am putting some entry in inputEmail i expect that my inputPasword will be fileed automaticly if corresponding
autoCompleteTextView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView> parent, View view, int position, long id) {
String selectedItem=autoCompleteTextView.getAdapter().getItem(position).toString();
Toast.makeText(getApplicationContext(),selectedItem , Toast.LENGTH_SHORT).show();
}
});
Just get the adapter of AutoCompleteTextView and use the position.