xamarin/Xamarin.Forms

Picker control doesn't highlight the user selected item on Android

开放

#3,885 创建于 2018年9月24日

 (8 条评论) (4 个反应) (0 位负责人)C# (1,926 个派生)batch import
e/3 :clock3:help wantedinactivep/Androidt/bug :bug:up-for-grabs

仓库指标

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

描述

Description

The Picker object doesn't highlight the user selected item on Android when it popup the list of items. This is mainly important when you have a large list of items.

Steps to Reproduce

  1. Add a picker to your main screen
  2. Fill-in the picker with 100 items (I used integers from 1 to 99)
  3. Start the demo project
  4. Select number "50" for example
  5. If you click once again on the picker, it will show the content starting from 1 instead of center the list on "50"

Expected Behavior

Picker should purpose user selected item as default item when it pupups

Actual Behavior

It doesn't highlight any of the item

Basic Information

  • Version with issue: Xamarin.Forms all versions
  • Last known good version: none
  • IDE: VS 2017
  • Platform Target Frameworks:
    • Android: all versions
  • Affected Devices: All devices

Screenshots

On Android NOT OK: picker_android

On iOS OK: picker_ios

On UWP OK: picker_uwp

Reproduction Link

TestPicker.zip

贡献者指南