java.lang.IllegalStateException: Child drawer has absolute gravity RIGHT but this DrawerLayout already has a drawer view along that edge

Stack Overflow | david | 12 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    double drawer from the same side ? android drawerlayout

    Stack Overflow | 12 months ago | david
    java.lang.IllegalStateException: Child drawer has absolute gravity RIGHT but this DrawerLayout already has a drawer view along that edge
  2. 0

    Why DrawerLayout and ActionBar not working on Tablets?

    Stack Overflow | 3 years ago | ANDROBIB
    java.lang.IllegalStateException: Child android.widget.FrameLayout@41f91e40 at index 0 does not have a valid layout_gravity - must be Gravity.LEFT, Gravity.RIGHT or Gravity.NO_GRAVITY
  3. 0

    Child drawer has absolute gravity LEFT but this DrawerLayout already has a drawer view along that edge

    Stack Overflow | 5 months ago | Nabia Saroosh
    java.lang.IllegalStateException: Child drawer has absolute gravity LEFT but this DrawerLayout already has a drawer view along that edge
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to align BottomNavigationView to the bottom on an activity along with NavigationView?

    Stack Overflow | 1 week ago | Johnny Orton
    java.lang.IllegalStateException: Child android.support.design.widget.BottomNavigationView{64f98f6c V.E...... ......I. 0,0-0,0 #7f0c0080 app:id/bottom_navigation_bar} at index 2 does not have a valid layout_gravity - must be Gravity.LEFT, Gravity.RIGHT or Gravity.NO_GRAVITY

  1. Agócs Tamás 6 times, last 1 year ago
1 unregistered visitors

Root Cause Analysis

  1. java.lang.IllegalStateException

    Child drawer has absolute gravity RIGHT but this DrawerLayout already has a drawer view along that edge

    at android.support.v4.widget.DrawerLayout.onMeasure_Original()
  2. Android Support v4
    DrawerLayout.onMeasure
    1. android.support.v4.widget.DrawerLayout.onMeasure_Original(DrawerLayout.java:1089)
    2. android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java)
    2 frames
  3. Android Platform
    RelativeLayout.onMeasure
    1. android.view.View.measure(View.java:18788)
    2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    4. android.view.View.measure(View.java:18788)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
    7. android.view.View.measure(View.java:18788)
    8. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    9. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    9 frames