Guest User

Untitled

a guest
Oct 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:id="@+id/drawer_layout"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:fitsSystemWindows="true">
  9.  
  10. <android.support.design.widget.CoordinatorLayout
  11. android:id="@+id/account_menu_coordinator_layout"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent">
  14.  
  15. <TextView
  16. android:layout_width="match_parent"
  17. android:layout_height="30dp"
  18. android:text="@string/lores_ipsum"/>
  19.  
  20. </android.support.design.widget.CoordinatorLayout>
  21. </android.support.v4.widget.DrawerLayout>
  22.  
  23. final View content =
  24. (View) inflater.inflate(R.layout.activity_account_menu2, coordinatorLayout, false);
  25.  
  26. E/AndroidRuntime: FATAL EXCEPTION: main
  27. Process: com.google.android.libraries.onegoogle.demoapp, PID: 14668
  28. java.lang.IllegalArgumentException: DrawerLayout must be measured with MeasureSpec.EXACTLY.
  29. at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1053)
Add Comment
Please, Sign In to add comment