Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How do I switch autocomplete off in a Xamarin.Forms Entry (so that it works on Android)

$
0
0

I have an Entry that contains sensitive information that I don't want autocomplete to store.

I tried:

<Entry Text="{Binding Password}"                               
   HorizontalOptions="Start"
   VerticalOptions="Start">
    <Entry.Keyboard>
      <Keyboard x:FactoryMethod="Create">
        <x:Arguments>
          <KeyboardFlags>None</KeyboardFlags>
        </x:Arguments>
      </Keyboard>
    </Entry.Keyboard>    
</Entry>

This successfully stops autocomplete on iOS but unfortunately, autocomplete is still active in Android (my testdevice is a Pixel 3 XL with Android 9.0).

After posting on https://stackoverflow.com/questions/55468720/switch-autocomplete-off-in-a-xamarin-forms-entry I got the suggestion to use IsTextPredictionEnabled and IsSpellCheckEnabled which took me to:

<Entry Text="{Binding Password}"                               
   HorizontalOptions="Start"
   VerticalOptions="Start"
   IsTextPredictionEnabled="False"
   IsSpellCheckEnabled="False">
</Entry>

Unfortunately, it still doesn't work on Android. Is there a bug or do I have to do something else to get it working on Android?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>