Menu

#2 Warning "requestLayout() improperly called" in LogCat

1.0.1
accepted
2014-09-23
2014-09-23
No

When the attribute "contentMode" is set to RESIZE, warnings like the ones shown below are occuring in the LogCat output:

09-23 14:04:00.752: W/View(9230): requestLayout() improperly called by de.mrapp.android.sidebar.view.ContentView{418a7fd8 V.E..... ......I. 0,0-1024,1342} during second layout pass: posting in next frame
09-23 14:04:00.762: W/View(9230): requestLayout() improperly called by de.mrapp.android.sidebar.view.ContentView{418a7fd8 V.E..... ......ID 0,0-1024,1342} during layout: running second layout pass

Discussion

  • Michael Rapp

    Michael Rapp - 2014-09-23

    The warnings are caused by the line "contentView.requestLayout();" in the onLayout-method of the class Sidebar.java. This method call is necessary to refresh the layout of the content view, depending on its current size.

     
  • Michael Rapp

    Michael Rapp - 2014-09-23
    • status: open --> accepted
     

Log in to post a comment.