Guest User

Untitled

a guest
Oct 9th, 2017
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. MainActivity
  2.  
  3.  
  4.  
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. xmlns:app="http://schemas.android.com/apk/res-auto"
  8. xmlns:tools="http://schemas.android.com/tools"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. tools:context="com.gif.gif.MainActivity">
  12.  
  13. <Button
  14. android:id="@+id/CREATE"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_marginBottom="66dp"
  18. android:layout_marginEnd="148dp"
  19. android:layout_marginStart="148dp"
  20. android:layout_marginTop="80dp"
  21. android:onClick="onButtonClick"
  22. android:text="CREATE"
  23. app:layout_constraintBottom_toTopOf="@+id/button5"
  24. app:layout_constraintEnd_toEndOf="parent"
  25. app:layout_constraintStart_toStartOf="parent"
  26. app:layout_constraintTop_toTopOf="parent"
  27. tools:layout_editor_absoluteX="148dp"
  28. tools:layout_editor_absoluteY="80dp" />
  29.  
  30. <Button
  31. android:id="@+id/button5"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="EDIT"
  35. tools:layout_editor_absoluteX="148dp"
  36. tools:layout_editor_absoluteY="194dp"
  37. android:layout_marginEnd="148dp"
  38. app:layout_constraintEnd_toEndOf="parent"
  39. app:layout_constraintStart_toStartOf="parent"
  40. android:layout_marginStart="148dp"
  41. android:layout_marginBottom="63dp"
  42. app:layout_constraintBottom_toTopOf="@+id/button6"
  43. android:layout_marginTop="66dp"
  44. app:layout_constraintTop_toBottomOf="@+id/CREATE" />
  45.  
  46. <Button
  47. android:id="@+id/button6"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="SETTINGS"
  51. tools:layout_editor_absoluteX="147dp"
  52. tools:layout_editor_absoluteY="305dp"
  53. app:layout_constraintStart_toStartOf="parent"
  54. android:layout_marginStart="147dp"
  55. android:layout_marginEnd="146dp"
  56. app:layout_constraintEnd_toEndOf="parent"
  57. app:layout_constraintBottom_toBottomOf="parent"
  58. android:layout_marginBottom="158dp"
  59. android:layout_marginTop="63dp"
  60. app:layout_constraintTop_toBottomOf="@+id/button5" />
  61. </android.support.constraint.ConstraintLayout>
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. CreateClass
  69.  
  70. <?xml version="1.0" encoding="utf-8"?>
  71. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  72. xmlns:app="http://schemas.android.com/apk/res-auto"
  73. xmlns:tools="http://schemas.android.com/tools"
  74. android:layout_width="match_parent"
  75. android:layout_height="match_parent"
  76. android:id="@+id/linearLayout">
  77.  
  78.  
  79. <Button
  80. android:id="@+id/CAMERA"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_marginBottom="66dp"
  84. android:layout_marginEnd="148dp"
  85. android:layout_marginStart="148dp"
  86. android:layout_marginTop="80dp"
  87. android:onClick="openCamera"
  88. android:text="Camera"
  89. app:layout_constraintBottom_toTopOf="@+id/SCREEN"
  90. app:layout_constraintEnd_toEndOf="parent"
  91. app:layout_constraintStart_toStartOf="parent"
  92. app:layout_constraintTop_toTopOf="parent"
  93. tools:layout_editor_absoluteX="148dp"
  94. tools:layout_editor_absoluteY="80dp" />
  95.  
  96. <Button
  97. android:id="@+id/SCREEN"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:text="Screen"
  101. tools:layout_editor_absoluteX="148dp"
  102. tools:layout_editor_absoluteY="194dp"
  103. android:layout_marginEnd="148dp"
  104. app:layout_constraintEnd_toEndOf="parent"
  105. app:layout_constraintStart_toStartOf="parent"
  106. android:layout_marginStart="148dp"
  107. android:layout_marginBottom="63dp"
  108. android:layout_marginTop="66dp"
  109. app:layout_constraintTop_toBottomOf="@+id/CAMERA" />
  110.  
  111.  
  112.  
  113. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment