I have a credit card EditText fields (full name, expiry date, creditcard number, cvv) that are all auto filled in android application.
The problem is the autofill prompt is showing up on every field. I just want the autofill to appear when user clicks on the creditcard field. If user clicks on cvv or expiry date for example, then there should be no prompt to autofill.
the key thing is that i still want all the fields to be autofill but I just don't want the prompt to show up on all of them.
what I have tried so far.
here is an example of the cvv field in which i tried to set
importantForAutoFill to "no"
but this makes the field get ignored completely. i just do not want the prompt to appear:
<EditText
android:id="@+id/et_cc_cvv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="creditCardSecurityCode"
android:importantForAutofill="no"
android:drawableRight="@drawable/question_icon"
android:hint="@string/cvv"
android:imeOptions="actionDone"
android:inputType="number" />