Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27531] Android: TextField - add password visibility toggle API

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSergey Volkov
AssigneeEric Merriman
Created2019-09-25T11:50:21.000+0000
Updated2021-04-11T10:22:56.000+0000

Description

Patch for the SDK: [^0001-feat-android-add-passwordToggle-properties-to-textVi.patch] Sample application code: [^app.js] Related platform methods documentation: [setPasswordVisibilityToggleEnabled](https://developer.android.com/reference/android/support/design/widget/TextInputLayout#setpasswordvisibilitytoggleenabled) [setPasswordVisibilityToggleTintList](https://developer.android.com/reference/android/support/design/widget/TextInputLayout#setpasswordvisibilitytoggletintlist)
  - name: passwordVisibilityToggleColor
    summary: Color of password visibility toggle
    description: |
      Color applied to password visibility toggle when field's input is not visible.
      This property only works when <Titanium.UI.TextField.passwordVisibilityToggleEnabled> is set true.
    type: String
    default: value of <Titanium.UI.TextField.hintTextColor> property
    since: {android: "8.3.0"}
    platforms: [android]

  - name: passwordVisibilityToggleEnabled
    summary: Determines whether the password visibility toggle functionality is enabled or not
    description: |
      When enabled, a button is placed at the end of the TextField which enables the user to switch
      between the field's input being visibly disguised or not.
      This property only works when <Titanium.UI.TextField.passwordMask> is set true.
    type: boolean
    default: false
    since: {android: "8.3.0"}
    platforms: [android]

  - name: passwordVisibilityToggleTintColor
    summary: Tint color of password visibility toggle
    description: |
      Color applied to password visibility toggle when field's input is visible.
      This property only works when <Titanium.UI.TextField.passwordVisibilityToggleEnabled> is set true.
    type: String
    default: value of <Titanium.UI.TextField.color> property
    since: {android: "8.3.0"}
    platforms: [android]

Attachments

FileDateSize
0001-feat-android-add-passwordToggle-properties-to-textVi.patch2019-09-25T11:45:53.000+00007832
app.js2019-09-25T11:37:35.000+00002038
pwd_toggle.gif2019-09-25T11:36:42.000+00001074955

Comments

  1. Michael Gangolf 2021-04-11

    Awesome! I've made a PR so it won't get lost here: https://github.com/appcelerator/titanium_mobile/pull/12712

JSON Source