xamarin/Xamarin.Forms

Unable to enter text into SearchBar placed inside ViewCell

Aperta

#4882 aperta il 2 gen 2019

 (0 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/listviewe/3 :clock3:help wantedinactivep/Androidt/bug :bug:up-for-grabs

Metriche repository

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

Descrizione

Description

Placing a SearchBar inside a ViewCell causes the SearchBar to become unresponsive to taps, which makes it impossible to enter text into the SearchBar interactively.

Steps to Reproduce

  1. Create an Android app
  2. Create a ListView or TableView in a XAML page
  3. Put a SearchBar inside a ViewCell

Expected Behavior

SearchBars would work fine inside ViewCells.

Actual Behavior

Text cannot be entered into a SearchBar inside a ViewCell. Tapping the SearchBar does not focus the SearchBar and pop up the virtual keyboard.

Basic Information

  • Version with issue: 3.4.0.1008975
  • Last known good version: I tested back to 3.0 and the issue still happens there as well
  • IDE: VS 2017 15.9.4
  • Platform Target Frameworks:
    • Android: 28
  • Android Support Library Version: 28.0.0
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

SearchBar.zip

Guida contributor