Aucune description

activity_main.xml 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/Plant_info"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".MainActivity">
  9. <TextView
  10. android:id="@+id/author"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:text="@string/author"
  14. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  15. app:layout_constraintBottom_toBottomOf="parent"
  16. app:layout_constraintEnd_toEndOf="parent"
  17. app:layout_constraintHorizontal_bias="0.506"
  18. app:layout_constraintStart_toStartOf="parent"
  19. app:layout_constraintTop_toBottomOf="@+id/year"
  20. app:layout_constraintVertical_bias="0.239" />
  21. <TextView
  22. android:id="@+id/sci_name"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:text="@string/scientific_name"
  26. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  27. app:layout_constraintBottom_toBottomOf="parent"
  28. app:layout_constraintEnd_toEndOf="parent"
  29. app:layout_constraintHorizontal_bias="0.507"
  30. app:layout_constraintStart_toStartOf="parent"
  31. app:layout_constraintTop_toBottomOf="@+id/plant_name"
  32. app:layout_constraintVertical_bias="0.155" />
  33. <TextView
  34. android:id="@+id/plant_name"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="@string/plant_name"
  38. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  39. app:layout_constraintBottom_toBottomOf="parent"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintHorizontal_bias="0.511"
  42. app:layout_constraintStart_toStartOf="parent"
  43. app:layout_constraintTop_toTopOf="parent"
  44. app:layout_constraintVertical_bias="0.57" />
  45. <TextView
  46. android:id="@+id/year"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:text="@string/year"
  50. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  51. app:layout_constraintBottom_toBottomOf="parent"
  52. app:layout_constraintEnd_toEndOf="parent"
  53. app:layout_constraintHorizontal_bias="0.506"
  54. app:layout_constraintStart_toStartOf="parent"
  55. app:layout_constraintTop_toBottomOf="@+id/sci_name"
  56. app:layout_constraintVertical_bias="0.186" />
  57. <ImageView
  58. android:id="@+id/plantview"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:contentDescription="@string/plant_display"
  62. app:layout_constraintBottom_toTopOf="@+id/plant_name"
  63. app:layout_constraintEnd_toEndOf="parent"
  64. app:layout_constraintHorizontal_bias="0.498"
  65. app:layout_constraintStart_toStartOf="parent"
  66. app:layout_constraintTop_toTopOf="parent"
  67. app:srcCompat="@drawable/ic_launcher_foreground" />
  68. </androidx.constraintlayout.widget.ConstraintLayout>