Android AppCompatAutoCompleteTextView

            

                
            

        carCodeSpinner.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                carCodeSpinner.showDropDown();
            }
        });


        if (data.getCarCode() != null) {
                            carCodeAdapter = new ArrayAdapter<>(mContext, R.layout.spinner_item, data.getCarCode());
                            carCodeSpinner.setAdapter(carCodeAdapter);
                        }

你可能感兴趣的:(Android AppCompatAutoCompleteTextView)