Это объявление AutoCompleteTextView.
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
if(savedInstanceState==null){
mViewModel = new ViewModelProvider(this).get(SearchPartyViewModel.class);
}
View root=inflater.inflate(R.layout.fragment_new_order, container, false);
initMessege=(TextView)root.findViewById(R.id.initMessege);
newOrderPartyProgressBar=(ProgressBar)root.findViewById(R.id.newOrderPartyProgressBar);
newProductDetailView=(ConstraintLayout)root.findViewById(R.id.newProductDetailView);
listView=(LinearLayout)root.findViewById(R.id.listView);
productSearchAutoCompleteTextView=(AutoCompleteTextView)root.findViewById(R.id.productSearchAutoCompleteTextView);
newOrderParty=(AutoCompleteTextView)root.findViewById(R.id.newOrderParty);
GetRetailList();
ArrayAdapter<String> adapter= new ArrayAdapter<String>(getContext(),android.R.layout.simple_spinner_dropdown_item,retailerList);
newOrderParty.setAdapter(adapter);
newOrderParty.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Log.i("choosen",retailerList.get(position));
}
});
return root;
}
, когда элемент выбирается из выпадающего списка, появляется следующая ошибка
W/IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper: getSelectedText on inactive InputConnection
W/IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection