einzugeben In dieser AutoCompleteTextView kann ich alle Alphabete und Sonderzeichen eingeben, nur keine Zahlen. Problem wird auf Lollipop und höher beobachtet. funktioniert auf kitkatNicht in der Lage, Zahlen in AutoCompleteTextView android
<AutoCompleteTextView
android:id="@+id/editTextSearchView"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_toLeftOf="@+id/searchclear"
android:layout_marginBottom="20dp"
android:layout_marginLeft="16dp"
android:layout_marginTop="10dp"
android:dropDownHeight="160dp"
android:gravity="center_vertical"
android:hint="Enter Location"
android:imeOptions="actionDone"
android:paddingLeft="10dp"
android:paddingStart="10dp"
android:paddingTop="12dp"
android:singleLine="true"
android:textColor="@color/theme_color"
android:textColorHint="@color/theme_color"
android:textCursorDrawable="@null" />
textWatcher auf dem Bearbeiten von Textfeld verwendet:
autoCompleteTextView.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void afterTextChanged(Editable editable) {
if(editable.length() > 0)
autoCompleteClearButton.setVisibility(View.VISIBLE);
else
autoCompleteClearButton.setVisibility(View.GONE);
}
});
Sind Sie mit diesem Problem konfrontiert über alle Geräte sind in bestimmten Geräten. Ich habe dies in Genymotion Emulator mit OS-Version Lollipop und Marshmallow überprüft. Es funktioniert ohne Änderung in dir xml. –