activity_main.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.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=".MainActivity">
  8. <TextView
  9. android:id="@+id/headline"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:text="Click to run"
  13. app:layout_constraintBottom_toBottomOf="parent"
  14. app:layout_constraintHorizontal_bias="0.046"
  15. app:layout_constraintLeft_toLeftOf="parent"
  16. app:layout_constraintRight_toRightOf="parent"
  17. app:layout_constraintTop_toTopOf="parent"
  18. app:layout_constraintVertical_bias="0.022" />
  19. <ImageView
  20. android:id="@+id/imageView"
  21. android:layout_width="0dp"
  22. android:layout_height="0dp"
  23. android:layout_marginTop="10dp"
  24. app:layout_constraintBottom_toBottomOf="parent"
  25. app:layout_constraintEnd_toEndOf="parent"
  26. app:layout_constraintStart_toStartOf="parent"
  27. app:layout_constraintTop_toBottomOf="@+id/headline"
  28. tools:srcCompat="@tools:sample/backgrounds/scenic" />
  29. </android.support.constraint.ConstraintLayout>