I have 2 AutoCompleteTextViewsin activity (LinearLayout) and several additional controls(radio groups, buttons, etc.). Somehow AutoCompleteTextViews never losing focus.
As an example: The user clicks on the AutoCompleteTextView, the control receives focus. Thus, the cursor starts flashing, the autocomplete drop-down list and the keyboard are displayed. It is perfectly. However, if user now clicks on of the radio buttons(or another control), the cursor in the AutoCompleteTextView is still blinkingand keyboard is still displayed.
How to make focus automatically disappear?
EDIT: xml code
<AutoCompleteTextView
android:id="@+id/ediFrom"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:singleLine="true"
android:text="" />
source
share