hello_act_lay.xml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout>
  3. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".activity.HelloActivity">
  9. <TextView
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:text="Hello World!"
  13. app:layout_constraintBottom_toBottomOf="parent"
  14. app:layout_constraintLeft_toLeftOf="parent"
  15. app:layout_constraintRight_toRightOf="parent"
  16. app:layout_constraintTop_toTopOf="parent" />
  17. <TextView
  18. android:id="@+id/hello_api_data"
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. app:layout_constraintBottom_toBottomOf="parent"
  22. app:layout_constraintLeft_toLeftOf="parent"
  23. app:layout_constraintRight_toRightOf="parent"
  24. app:layout_constraintTop_toTopOf="parent"
  25. />
  26. </android.support.constraint.ConstraintLayout>
  27. </layout>