mmayoub

MathApp, activity_main.xml

Sep 11th, 2021 (edited)
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.67 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:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:layout_margin="16dp"
  8.    tools:context=".MainActivity">
  9.  
  10.     <ImageView
  11.        android:id="@+id/imageView"
  12.        android:layout_width="wrap_content"
  13.        android:layout_height="wrap_content"
  14.        app:layout_constraintEnd_toEndOf="parent"
  15.        app:layout_constraintHorizontal_bias="1.0"
  16.        app:layout_constraintStart_toStartOf="parent"
  17.        app:layout_constraintTop_toTopOf="parent"
  18.        app:srcCompat="@drawable/logo" />
  19.  
  20.     <Button
  21.        android:id="@+id/btnStart"
  22.        android:layout_width="wrap_content"
  23.        android:layout_height="wrap_content"
  24.        android:layout_marginTop="30dp"
  25.        android:onClick="start"
  26.        android:text="Start"
  27.        app:layout_constraintEnd_toEndOf="parent"
  28.        app:layout_constraintStart_toStartOf="parent"
  29.        app:layout_constraintTop_toBottomOf="@+id/imageView" />
  30.  
  31.     <Button
  32.        android:id="@+id/btnSettiings"
  33.        android:layout_width="wrap_content"
  34.        android:layout_height="wrap_content"
  35.        android:layout_marginTop="16dp"
  36.        android:onClick="settings"
  37.        android:text="Settings"
  38.        app:layout_constraintEnd_toEndOf="parent"
  39.        app:layout_constraintStart_toStartOf="parent"
  40.        app:layout_constraintTop_toBottomOf="@+id/btnStart" />
  41. </androidx.constraintlayout.widget.ConstraintLayout>
Add Comment
Please, Sign In to add comment