HICONT

activity_main.xml

Sep 10th, 2024
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".MainActivity">
  9.  
  10. <TextView
  11. android:id="@+id/textView"
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:text="0"
  15. android:textSize="25sp"
  16. app:layout_constraintBottom_toBottomOf="parent"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintHorizontal_bias="0.498"
  19. app:layout_constraintStart_toStartOf="parent"
  20. app:layout_constraintTop_toTopOf="parent"
  21. app:layout_constraintVertical_bias="0.421" />
  22.  
  23. <Button
  24. android:id="@+id/button4"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:text="+"
  28. android:layout_marginStart="64dp"
  29. android:layout_marginTop="56dp"
  30. app:layout_constraintStart_toStartOf="parent"
  31. app:layout_constraintTop_toBottomOf="@+id/textView" />
  32.  
  33. <Button
  34. android:id="@+id/button2"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="clear"
  38. android:layout_marginTop="56dp"
  39. android:layout_marginEnd="64dp"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintTop_toBottomOf="@+id/textView" />
  42.  
  43. <Button
  44. android:id="@+id/button3"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:text="-"
  48. android:layout_marginTop="56dp"
  49. app:layout_constraintEnd_toStartOf="@+id/button2"
  50. app:layout_constraintStart_toEndOf="@+id/button4"
  51. app:layout_constraintTop_toBottomOf="@+id/textView" />
  52.  
  53.  
  54. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment