Advertisement
sphinx2001

resulLayout

Mar 8th, 2024
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.97 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_marginTop="40dp"
  9.    tools:context=".ResultTestActivity">
  10.  
  11.     <TextView
  12.        android:id="@+id/resultTitle"
  13.        android:layout_width="0dp"
  14.        android:layout_height="wrap_content"
  15.        android:text="Результаты теста"
  16.        android:textAlignment="center"
  17.        android:textSize="40dp"
  18.        android:layout_marginTop="40dp"
  19.        app:layout_constraintBottom_toTopOf="@id/tvScore"
  20.        app:layout_constraintHorizontal_bias="0.0"
  21.        app:layout_constraintLeft_toLeftOf="parent"
  22.        app:layout_constraintRight_toRightOf="parent"
  23.        app:layout_constraintTop_toTopOf="parent" />
  24.  
  25.     <TextView
  26.        android:layout_width="0dp"
  27.        android:layout_height="wrap_content"
  28.        android:id="@+id/tvScore"
  29.        android:text="20/20"
  30.        android:textSize="30dp"
  31.        android:layout_marginTop="40dp"
  32.        android:gravity="center"
  33.        app:layout_constraintTop_toBottomOf="@id/resultTitle"
  34.        app:layout_constraintLeft_toLeftOf="parent"
  35.        app:layout_constraintRight_toRightOf="parent"
  36.        />
  37.     <Button
  38.        android:layout_width="0dp"
  39.        android:layout_height="wrap_content"
  40.        android:id="@+id/btnQuit"
  41.        android:text="Конец теста"
  42.        android:textSize="30dp"
  43.        android:padding="15dp"
  44.        app:layout_constraintLeft_toLeftOf="parent"
  45.        app:layout_constraintRight_toRightOf="parent"
  46.        app:layout_constraintTop_toBottomOf="@id/tvScore"
  47.        app:layout_constraintBottom_toBottomOf="parent"
  48.        />
  49. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement