Guest User

activity_details.xml

a guest
Sep 17th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.73 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:padding="16dp"
  8.    tools:context=".DetailsActivity">
  9.  
  10.     <TextView
  11.        android:id="@+id/plantName"
  12.        android:layout_width="0dp"
  13.        android:layout_height="wrap_content"
  14.        android:gravity="center"
  15.        android:textAppearance="@style/TextAppearance.AppCompat.Headline"
  16.        app:layout_constraintEnd_toEndOf="parent"
  17.        app:layout_constraintStart_toStartOf="parent"
  18.        app:layout_constraintTop_toTopOf="parent" />
  19.  
  20.     <TextView
  21.        android:id="@+id/plantDescription"
  22.        android:layout_width="0dp"
  23.        android:layout_height="wrap_content"
  24.        android:layout_marginTop="16dp"
  25.        app:layout_constraintEnd_toEndOf="parent"
  26.        app:layout_constraintStart_toStartOf="parent"
  27.        app:layout_constraintTop_toBottomOf="@id/plantName" />
  28.  
  29.     <RatingBar
  30.        android:id="@+id/ratingBar"
  31.        android:layout_width="wrap_content"
  32.        android:layout_height="wrap_content"
  33.        app:layout_constraintBottom_toBottomOf="parent"
  34.        app:layout_constraintStart_toStartOf="parent" />
  35.  
  36.     <Button
  37.        android:id="@+id/buttonSave"
  38.        android:layout_width="wrap_content"
  39.        android:layout_height="wrap_content"
  40.        android:text="Save"
  41.        app:layout_constraintBottom_toBottomOf="parent"
  42.        app:layout_constraintEnd_toEndOf="parent" />
  43.  
  44. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment