In this case, the form is considered as a "web form"?
If EditText (html input field) is inside the browser page (any web form that accepts data from the user).
We need to use InputType TYPE_TEXT_VARIATION_WEB_PASSWORD in case of web-from.
if EditText is an EditText object in your own application, then you need to use TYPE_TEXT_VARIATION_PASSWORD
Is there a difference in behavior between the two? (visually and / or logically)
YES,
See com.android.inputmethod.latin.InputAttributes here:
Flag used
TYPE_TEXT_VARIATION_WEB_EDIT_TEXT :
// If it a browser edit field and auto correct is not ON explicitly, then // disable auto correction, but keep suggestions on. // If NO_SUGGESTIONS is set, don't do prediction. // If it not multiline and the autoCorrect flag is not set, then don't correct
But in the case of TYPE_TEXT_VARIATION_PASSWORD InputType above the comments are not TRUE.
source share