Advertisement
criticaldamage

MainActivity.xml(old)

Jan 4th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 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. android:background="#97C3E7"
  9. tools:context=".MainActivity">
  10.  
  11. <TextView
  12. android:id="@+id/textView"
  13. android:layout_width="407dp"
  14. android:layout_height="108dp"
  15. android:shadowColor="#2E2D2D"
  16. android:shadowRadius="10"
  17. android:text="0"
  18. android:textAlignment="center"
  19. android:textColor="#4D4D4D"
  20. android:textSize="100sp"
  21. android:textStyle="bold"
  22. app:layout_constraintBottom_toBottomOf="parent"
  23. app:layout_constraintEnd_toEndOf="parent"
  24. app:layout_constraintHorizontal_bias="0.498"
  25. app:layout_constraintStart_toStartOf="parent"
  26. app:layout_constraintTop_toTopOf="parent"
  27. app:layout_constraintVertical_bias="0.171" />
  28.  
  29. <Button
  30. android:id="@+id/button"
  31. android:layout_width="267dp"
  32. android:layout_height="212dp"
  33. android:background="#00FFFFFF"
  34. android:onClick="clicko"
  35. android:text="@string/buttont"
  36. android:textSize="150sp"
  37. app:layout_constraintBottom_toBottomOf="parent"
  38. app:layout_constraintEnd_toEndOf="parent"
  39. app:layout_constraintStart_toStartOf="parent"
  40. app:layout_constraintTop_toTopOf="parent"
  41. app:layout_constraintVertical_bias="0.645" />
  42.  
  43. <Button
  44. android:id="@+id/button2"
  45. android:layout_width="289dp"
  46. android:layout_height="74dp"
  47. android:backgroundTint="#FFE96B"
  48. android:onClick="buy"
  49. android:text="@string/shop"
  50. android:textColor="#4E4E4E"
  51. android:textSize="20sp"
  52. app:layout_constraintBottom_toBottomOf="parent"
  53. app:layout_constraintEnd_toEndOf="parent"
  54. app:layout_constraintHorizontal_bias="0.497"
  55. app:layout_constraintStart_toStartOf="parent"
  56. app:layout_constraintTop_toTopOf="parent"
  57. app:layout_constraintVertical_bias="0.951" />
  58.  
  59. <Button
  60. android:id="@+id/button3"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:backgroundTint="#FFE96B"
  64. android:text="Отчистить"
  65. android:textColor="#4E4E4E"
  66. android:onClick="clear"
  67. app:layout_constraintBottom_toBottomOf="parent"
  68. app:layout_constraintEnd_toEndOf="parent"
  69. app:layout_constraintHorizontal_bias="0.498"
  70. app:layout_constraintStart_toStartOf="parent"
  71. app:layout_constraintTop_toTopOf="parent"
  72. app:layout_constraintVertical_bias="0.046" />
  73.  
  74.  
  75. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement