AutoCompleteTextView默认首次失去焦点

由于工作需要,AutoCompleteTextView在默认下不需要焦点,当用户点击时再获取焦点并显示软键盘。在子布局LinearLayout下添加android:focusable="true"、android:focusableInTouchMode="true"两条语句即可。



        

        
    

你可能感兴趣的:(Android基础)