activity_main.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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="me.yoqi.app.lizihelper.MainActivity">
  8. <TextView
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:text="Hello World!"
  12. android:id="@+id/txt_hit"
  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. <android.support.v7.widget.LinearLayoutCompat
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. >
  21. <Button
  22. android:id="@+id/btn_start"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:text="start"
  26. tools:text="@string/start" />
  27. <Button
  28. android:id="@+id/btn_stop"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:text="stop"
  32. tools:text="stop" />
  33. </android.support.v7.widget.LinearLayoutCompat>
  34. </android.support.constraint.ConstraintLayout>