xamarin/Xamarin.Forms

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

开放

#3,487 创建于 2018年8月6日

 (9 条评论) (6 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/2 :clock2:good first issuehelp wantedinactivem/high impact :black_large_square:p/Androidt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南