Xamarin.forms: [Bug] Background becomes darker if entry has IsPassword=true

Created on 9 Jul 2020  路  3Comments  路  Source: xamarin/Xamarin.Forms

If a entry view has set the IsPassword property true and the user leaves the entry with a touch on the bottom right hook symbol on the keyboard the background becomes a litte darker.

Steps to Reproduce

  1. Goto TestCases in AndroidCoreGallery
  2. Open case 37863
  3. Type a char
  4. Leave entry with touch on hook symbol

Expected Behavior

Backgroundcolor should not change

Actual Behavior

Backgroundcolor becomes darker

Basic Information

  • Version with issue: 4.6
  • Last known good version: na
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:

    • iOS:

    • Android: 10

    • UWP:

  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

darken

Reproduction Link

Workaround

entry 3 Android bug up-for-grabs

Most helpful comment

Maybe it's to make the password harder to see :)

All 3 comments

That's an interesting thing to happen :-/

Maybe it's to make the password harder to see :)

I was looking at this last night and the problematic line is calling EditText.ClearFocus() in the TextView.IOnEditorActionListener.OnEditorAction(TextView v, ImeAction actionId, KeyEvent e). That seems like the right method to call though.

Was this page helpful?
0 / 5 - 0 ratings