Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. content_main.xml
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  9. tools:context="info.androidhive.dexterpermissions.MainActivity"
  10. tools:showIn="@layout/activity_main">
  11.  
  12. <LinearLayout
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:layout_marginTop="100dp"
  16. android:orientation="vertical"
  17. android:layout_centerHorizontal="true"
  18. android:paddingLeft="16dp"
  19. android:paddingRight="16dp">
  20.  
  21. <Button
  22. android:id="@+id/btn_camera"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_marginBottom="16dp"
  26. android:text="CAMERA PERMISSION" />
  27.  
  28. <Button
  29. android:id="@+id/btn_storage"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:text="MULTIPLE PERMISSIONS" />
  33.  
  34. </LinearLayout>
  35. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement