How to set the size of an AutoCompleteTextView Result?

前端 未结 3 1183
暗喜
暗喜 2020-12-10 15:36

Does anybody know How to set the size of an AutoCompleteTextView Result ?

\"enter

3条回答
  •  Happy的楠姐
    2020-12-10 16:41

    The best way is to create your own xml file with a customized design, such as "dropdown.xml"

    
    
    

    and in your code use this

    AutoCompleteTextView etChoose= (AutoCompleteTextView) findViewById(R.id.etChoose);
    ArrayAdapter adapterChoose = new ArrayAdapter(this,R.layout.dropdown, ChooseList);
    

提交回复
热议问题