gazievDima

Untitled

Apr 12th, 2021
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <ScrollView
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. xmlns:tools="http://schemas.android.com/tools"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:padding="10dp"
  10. tools:context=".MainActivity">
  11.  
  12. <androidx.constraintlayout.widget.ConstraintLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content">
  15.  
  16. <EditText
  17. android:id="@+id/editText"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:textSize="28sp"
  21. app:layout_constraintStart_toStartOf="parent"
  22. app:layout_constraintTop_toTopOf="parent"/>
  23.  
  24. <Button
  25. android:id="@+id/add_to_coll"
  26. android:layout_width="wrap_content"
  27. app:layout_constraintHorizontal_chainStyle="packed"
  28. app:layout_constraintHorizontal_weight="3"
  29. android:layout_height="wrap_content"
  30. android:textSize="14sp"
  31. android:textAllCaps="false"
  32. android:text="@string/add_to_coll"
  33. app:layout_constraintEnd_toStartOf="@id/show_to_coll"
  34. app:layout_constraintStart_toStartOf="parent"
  35. app:layout_constraintTop_toBottomOf="@id/editText" />
  36.  
  37. <Button
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:id="@id/show_to_coll"
  41. android:textAllCaps="false"
  42. android:textSize="14sp"
  43. app:layout_constraintHorizontal_weight="1"
  44. app:layout_constraintEnd_toEndOf="parent"
  45. android:text="@string/show_to_coll"
  46. app:layout_constraintTop_toBottomOf="@id/editText"
  47. app:layout_constraintStart_toEndOf="@id/add_to_coll"
  48. />
  49.  
  50. <TextView
  51. android:id="@+id/text"
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:text=""
  55. android:textSize="28sp"
  56. app:layout_constraintStart_toStartOf="@id/editText"
  57. app:layout_constraintTop_toBottomOf="@id/add_to_coll" />
  58.  
  59. </androidx.constraintlayout.widget.ConstraintLayout>
  60. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment