Advertisement
sphinx2001

activity_main_layout.xml

Mar 9th, 2024
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.86 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:layout_margin="10dp"
  9.    tools:context=".MainActivity">
  10.  
  11.     <TextView
  12.        android:id="@+id/tvTitle"
  13.        android:layout_width="0dp"
  14.        android:layout_height="wrap_content"
  15.        android:text="Quiz группы 3ПР"
  16.        android:textSize="30dp"
  17.        android:textAlignment="center"
  18.        android:textColor="#00F0FF"
  19.        app:layout_constraintVertical_bias="0"
  20.        app:layout_constraintBottom_toBottomOf="parent"
  21.        app:layout_constraintEnd_toEndOf="parent"
  22.        app:layout_constraintStart_toStartOf="parent"
  23.        app:layout_constraintTop_toTopOf="parent" />
  24.  
  25.     <TextView
  26.        android:id="@+id/tvQuest"
  27.        android:layout_width="0dp"
  28.        android:layout_height="0dp"
  29.        android:padding="20dp"
  30.        android:text="Как называется учебное заведение в котором вы учитесь:\na)..."
  31.        android:textSize="20sp"
  32.        android:textColor="#9946F8"
  33.        app:layout_constraintTop_toBottomOf="@id/tvTitle"
  34.        app:layout_constraintLeft_toLeftOf="parent"
  35.        app:layout_constraintRight_toRightOf="parent"
  36.        app:layout_constraintBottom_toTopOf="@id/button1"
  37.        />
  38.     <Button
  39.        android:id="@+id/button1"
  40.        android:layout_width="wrap_content"
  41.        android:layout_height="wrap_content"
  42.        android:text="A"
  43.        app:layout_constraintTop_toBottomOf="@id/tvQuest"
  44.        app:layout_constraintBottom_toBottomOf="parent"
  45.        app:layout_constraintLeft_toLeftOf="parent"
  46.        app:layout_constraintRight_toLeftOf="@id/button2"
  47.        app:layout_constraintHorizontal_chainStyle="spread"
  48.        />
  49.     <Button
  50.        android:id="@+id/button2"
  51.        android:layout_width="wrap_content"
  52.        android:layout_height="wrap_content"
  53.        android:text="B"
  54.        app:layout_constraintTop_toBottomOf="@id/tvQuest"
  55.        app:layout_constraintBottom_toBottomOf="parent"
  56.        app:layout_constraintLeft_toRightOf="@id/button1"
  57.        app:layout_constraintRight_toLeftOf="@id/button3"
  58.        />
  59.     <Button
  60.        android:id="@+id/button3"
  61.        android:layout_width="wrap_content"
  62.        android:layout_height="wrap_content"
  63.        android:text="C"
  64.        app:layout_constraintTop_toBottomOf="@id/tvQuest"
  65.        app:layout_constraintBottom_toBottomOf="parent"
  66.        app:layout_constraintLeft_toRightOf="@id/button2"
  67.        app:layout_constraintRight_toRightOf="parent"
  68.        />
  69.  
  70. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement