xamarin/Xamarin.Forms

Disable Autocomplete,text prediction feature using IsPredictionEnabled or customKeyboard options not working

Aperta

#3487 aperta il 6 ago 2018

 (9 commenti) (6 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/2 :clock2:good first issuehelp wantedinactivem/high impact :black_large_square:p/Androidt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

I have tried setting IsPredictionEnabled property for Entry also using custom keyboard ( entry.Keyboard = Keyboard.Create(KeyboardFlags.None) ) autocomplete,text prediction feature is not disabled for Xamarin Forms Android platform. In iOS and UWP platforms it works correctly.

Note:

Tried with keyboard options in various android version's.

In Android version 4.4 (Kitkat - Moto E device) this works correctly as expected. However, above Android version 5 this option doesn't work as expected.

As IsPredictionEnabled property is only in latest xamarin forms version , tried with this property also in latest forms version. But this also doesn't work.

Tried with Google Keyboard, where autocorrection,prediction options are enables by default in all the devices we tried.

Steps to Reproduce

  1. Include an Entry to the view
  2. set Keyboard options to entry = > entry.Keyboard = Keyboard.Create(KeyboardFlags.None);
  3. set IsPredictionEnabled property as false to entry.

Expected Behavior

In the keyboard for Entry, text prediction,autocomplete should not be viewed.

Actual Behavior

In the keyboard for Entry, text prediction,autocomplete options are enabled.

Basic Information

  • Version with issue: Android 6, Android 8.0 (Oreo)
  • Last known good version: Android 4.4
  • Xamarin Forms version tried - 2.4.0.280 / latest stable : 3.1.0.697729
  • Platform Target Frameworks:
    • Android:
  • Affected Devices:
  • Vivo Y66 (Android 6.0)
  • Mi A1 (Android 8.0)

Screenshots

Attaching the scrrenshot of Moto E device in which Keyboard option (Keyboard.None) worked.

motoe_4 4

Screenshot of MiA1 device:

mia1_8 0

Reproduction Link

Kindly find the sample

EntrySample.zip

Guida contributor