Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".MainActivity">
  9.  
  10. <Button
  11. android:text="Add"
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:id="@+id/add" app:layout_constraintStart_toStartOf="parent"
  15. app:layout_constraintBottom_toBottomOf="parent"
  16. android:layout_marginStart="16dp" android:layout_marginBottom="21dp"
  17. app:layout_constraintTop_toBottomOf="@+id/_dynamic" android:onClick="addItem"/>
  18. <Button
  19. android:text="Remove"
  20. android:layout_width="wrap_content"
  21. android:layout_height="44dp"
  22. android:id="@+id/remove"
  23. app:layout_constraintBottom_toBottomOf="parent" android:layout_marginEnd="16dp"
  24. android:layout_marginBottom="15dp"
  25. app:layout_constraintEnd_toEndOf="parent" android:onClick="remove"/>
  26. <ListView
  27. android:layout_width="368dp"
  28. android:layout_height="430dp"
  29. android:id="@+id/listView" tools:layout_editor_absoluteY="8dp" tools:layout_editor_absoluteX="8dp"/>
  30.  
  31. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement