Advertisement
programusy

Untitled

Oct 13th, 2023
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:padding="16dp">
  7.  
  8. <TextView
  9. android:id="@+id/time_view"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:text="0:00:00"
  13. android:textSize="48sp"
  14. android:layout_centerHorizontal="true"/>
  15.  
  16. <Button
  17. android:id="@+id/start_button"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_below="@+id/time_view"
  21. android:layout_marginTop="16dp"
  22. android:text="Start"
  23. android:onClick="onClickStart"/>
  24.  
  25. <Button
  26. android:id="@+id/stop_button"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_below="@+id/time_view"
  30. android:layout_marginTop="16dp"
  31. android:layout_toRightOf="@+id/start_button"
  32. android:layout_marginLeft="16dp"
  33. android:text="Stop"
  34. android:onClick="onClickStop"/>
  35.  
  36. <Button
  37. android:id="@+id/reset_button"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_below="@+id/time_view"
  41. android:layout_marginTop="16dp"
  42. android:layout_toRightOf="@+id/stop_button"
  43. android:layout_marginLeft="16dp"
  44. android:text="Reset"
  45. android:onClick="onClickReset"/>
  46. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement