requestLayout() improperly called

RaymondKellyRaymondKelly USMember ✭✭✭

I upgraded from XF 2.5.0.1222 to 3.1 and now I get the error repeatedly on Android, several per second. This is even when nothing is happening on the form. Any hints as to where to find this issue?

06-27 17:04:14.986 W/View    (19973): requestLayout() improperly called by md51558244f76c53b6aeda52c8a337f2c37.FormsTextView{47ded6c V.ED..... ......ID 0,0-917,65 #2d} during layout: running second layout pass
06-27 17:04:14.986 W/View    (19973): requestLayout() improperly called by md51558244f76c53b6aeda52c8a337f2c37.FormsTextView{c1232c7 V.ED..... ......ID 0,0-917,65 #30} during layout: running second layout pass
06-27 17:04:15.003 W/View    (19973): requestLayout() improperly called by md51558244f76c53b6aeda52c8a337f2c37.FormsTextView{d1bbe45 V.ED..... ........ 0,0-917,65 #31} during second layout pass: posting in next frame
06-27 17:04:15.003 W/View    (19973): requestLayout() improperly called by md51558244f76c53b6aeda52c8a337f2c37.FormsTextView{47ded6c V.ED..... ........ 0,0-917,65 #2d} during second layout pass: posting in next frame

Answers

  • RaymondKellyRaymondKelly USMember ✭✭✭

    Narrowed it down a little. This happens when I update a listviews bound ObservableCollection. When items are added, the console messages start repeating over and over. It never stops till you kill the app.

    The setup where "this" is the ListView:

            chatMessages = new ObservableCollection<ChatMessage>();
            this.ItemsSource = chatMessages;
    

    Once items are added to "chatMessages", the issue occurs.

  • RaymondKellyRaymondKelly USMember ✭✭✭

    More info, this is only happens when using XF 3.1. XF 3.0 and earlier does not have the issue.

  • robbitrobbit CNMember Xamurai

    Hi @RaymondKelly

    Would you like to provide a demo for us to reproduce your question?

  • SebastianSeidel.9226SebastianSeidel.9226 DEInsider, University ✭✭✭✭

    @robbit I am facing the same issue. Is there an existing issue to which I can attach my sample?

  • MazidiMazidi Member ✭✭
    edited November 2018

    ...

  • DineshFernandoDineshFernando USMember ✭✭
    edited February 15

    I have the same issue. If a new item is added to the ObservableCollection bound to the listView, the "requestLayout() improperly called by.. " message shows up.

    Also it affects the actual drawing of the list view after scrolling up. Reverting back to XF 2.5.1.527436 resolved the problem

  • Angelru9Angelru9 ESMember ✭✭✭
    edited March 14

    @RaymondKelly I have the same issue, any solution? I am using XF 3.6 with ScrollView

Sign In or Register to comment.