我的问题是,每当用户从AutoCompleteTextView中选择项时,我的代码都不会做出相应的反应。flag是一个变量,每当从每个AutoCompleteTextView中选择一个项时,该变量就被设置为一个值。如果它被设置为1,那么它就意味着它是正确的,它应该继续进行主要的活动。autocompleteView_city = final AutoCompleteTextViewautocomp
我正在尝试实现2个AutoCompleteTextView。第一个保持值,单击其中之一将填充第二个AutoCompleteTextView中的数据,所有工作和数据都正确加载,但是当我尝试调用第二个适配器上的notifyDataSetChanged时,该适配器填充了第二个未更改的字段ArrayAdapter(this,android.R.layout.simple_list_item_1,branchNames);
et7.setAdapter(branchAdapter);//et7 is the AutoCom
我试图让我的AutoCompleteTextView显示结果,但无论我寻找什么示例或解决方案,我都无法让它显示结果。我已经在调试中检查了它,适配器中有所有的值,但是它不会显示下拉<AutoCompleteTextView android:textColor="@android:color/primary_text_light"/>
Main