aakash2310

Untitled

Sep 23rd, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".MainActivity"
  8. android:orientation="vertical"
  9. android:padding="15dp"
  10. android:gravity="center_horizontal">
  11.  
  12. <TextView
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:text="Thread Demo"
  16. app:layout_constraintBottom_toBottomOf="parent"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintStart_toStartOf="parent"
  19. app:layout_constraintTop_toTopOf="parent"
  20. android:textSize="20dp"
  21. android:textColor="@color/purple_500"/>
  22.  
  23. <Button
  24. android:id="@+id/btnStartThread"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:text="Start"
  28. android:onClick="startThread"/>
  29.  
  30. <Button
  31. android:id="@+id/btnStopThread"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="Stop"
  35. android:onClick="stopThread"/>
  36.  
  37.  
  38. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment