Newer
Older
NemophilaClient / app / src / main / res / layout / activity_test.xml
  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. tools:context=".TestActivity">
  8.  
  9. <Spinner
  10. android:id="@+id/testspinner"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:layout_margin="30dp"
  14. app:layout_constraintTop_toTopOf="parent"
  15. app:layout_constraintStart_toStartOf="@+id/setViewModel"
  16. app:layout_constraintEnd_toEndOf="@+id/setViewModel"/>
  17.  
  18. <Button
  19. android:id="@+id/setViewModel"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:text="set View Model"
  23. app:layout_constraintBottom_toBottomOf="parent"
  24. app:layout_constraintEnd_toEndOf="parent"
  25. app:layout_constraintHorizontal_bias="0.498"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toTopOf="parent"
  28. app:layout_constraintVertical_bias="0.149" />
  29.  
  30. <ImageView
  31. android:id="@+id/imageView4"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. app:layout_constraintBottom_toBottomOf="parent"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. app:layout_constraintStart_toStartOf="parent"
  37. app:layout_constraintTop_toTopOf="parent"
  38. tools:srcCompat="@tools:sample/avatars" />
  39. </androidx.constraintlayout.widget.ConstraintLayout>