xamarin/Xamarin.Forms

[Bug] ListView with RecycleElement truncates right aligned labels on Android

开放

#7,844 创建于 2019年10月6日

 (3 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/layouta/listviewe/4 :clock4:help wantedp/Androidt/bug :bug:up-for-grabs

仓库指标

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

描述

Description

ListView with caching strategy RecycleElement and right aligned labels randomly truncates labels on Android after upgrade to XF 4.x

Steps to Reproduce

  1. Add a ListView with CachingStrategy=RecycleElement;
  2. Within DataTemplate use a label with HorizontalOptions=End;
  3. Add hundreds of items to the list and scroll up and down actively.

Using HorizontalTextAlignment=End resolves the issue but good to have HorizontalOptions=End fixed for consistency with iOS.

Expected Behavior

Labels are not truncated

Actual Behavior

Labels are randomly truncated

Basic Information

  • Version with issue: XF 4.x
  • Last known good version: XF 3.6.x
  • IDE: VS2019 16.3.2
  • Platform Target Frameworks:
    • Android: 10.0.0.43

Screenshots

Reproduction Link

https://github.com/VitalyKnyazev/LayoutIssue

Related issues #6297 and #6370

贡献者指南