xamarin/Xamarin.Forms
[Bug] [Android] TableView ViewCell content enabled state has undefined behaviour
开放
#6,874 创建于 2019年7月15日
a/listviewe/4 :clock4:help wantedp/Androidt/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
TableView ViewCell content enabled state shows undefined behaviour. Having multiple ViewCells with Entry elements in them alter the enabled state of each other. Probably some under the hood caching issue.
Steps to Reproduce
- use the attached exampple, that is a plain list of viewcells containing some EntryCells with Entrys set as IsEnabled == False
- scroll a viewcell (with isenabled == false) out of the screen, and the new one scrolling in will be disabled even though it is enabled!
(In the sample I set the top two entries to disabled, so scrolling down will cause some appearing bottom entries to become disabled. Scrolling back up sometimes also causes the disabled ones on the top to become enabled, rendering the tableview totally useless. You may need to adjust the number of viewcells to be able to see the onappearing misbehaviour.)
Expected Behavior
the views in different viewcells should have no effect to one another.
Actual Behavior
Basic Information
- Version with issue: checked 2.4 through 4.1
- Last known good version: never
- IDE:
- Platform Target Frameworks:
- Android: tested with 8+