Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

While using ListView DataTemplate, the requestLayout improperly called issue arises. #10055

Open
RabhiaBehamK opened this issue Mar 23, 2020 · 2 comments
Labels
a/listview Problems with the ListView/TableView e/5 🕔 5 p/Android t/bug 🐛

Comments

@RabhiaBehamK
Copy link

Description

ListView DataTemplate shows the following error message in the output window

"[View] requestLayout() improperly called by md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer{b089ff1 V.E...... ......ID 0,0-1080,1731 #1} during second layout pass: posting in next frame"

Steps to Reproduce

  1. Create a ListView with a collection in a custom layout.
  2. Run the sample.
  3. Check the Application Output for the error message.

Expected Behavior

The error messages should not be seen in the Application Output.

Actual Behavior

The below error message is seen in the Application Output:

[View] requestLayout() improperly called by md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer{b089ff1 V.E...... ......ID 0,0-1080,1731 #1} during second layout pass: posting in next frame

Basic Information

  • Version with issue: Latest Xamarin.Forms [4.5.396]
  • Platform Target Frameworks:
    • Android: 7.1
  • Nuget Packages: 4.5.396
  • Affected Devices:
    Moto G5 and Emulator with API 29.

Screenshots

Screenshot 2020-03-23 at 4 37 53 PM

Reproduction Link

ListViewTest.zip

@RabhiaBehamK RabhiaBehamK added s/unverified New report that has yet to be verified t/bug 🐛 labels Mar 23, 2020
@jeyakasipandi
Copy link

Can you check this issue with high priority?

@samhouts samhouts added a/listview Problems with the ListView/TableView p/Android labels Apr 21, 2020
@jsuarezruiz
Copy link
Contributor

I have been testing the example, and can reproduce the issue:
issue-listview

Tested on Xamarin.Forms 4.0, 4.1, 4.2, 4.3, 4.4, 4.5 and 4.6. This has caught my attention, I have replicated the example in the simplest way (without using plugins, etc.) and in that case I cannot reproduce the issue.

Issue10055.zip

I have to check with details what is done in PostCellViewModel etc. to know exactly where the issue is.

I have also tested the same code using CollectionView and everything works correctly.

@jsuarezruiz jsuarezruiz added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. and removed s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/unverified New report that has yet to be verified labels Apr 22, 2020
@samhouts samhouts added the e/5 🕔 5 label Jun 3, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/listview Problems with the ListView/TableView e/5 🕔 5 p/Android t/bug 🐛
Projects
None yet
Development

No branches or pull requests

4 participants