Android Demo项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home_list.xml 1.4KB

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. <TextView
  8. android:id="@+id/home_list_title"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:layout_weight="1"
  12. android:text="@android:string/dialog_alert_title"
  13. tools:layout_editor_absoluteY="0dp"
  14. android:layout_marginLeft="0dp"
  15. app:layout_constraintLeft_toLeftOf="parent" />
  16. <TextView
  17. android:id="@+id/home_list_date"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_weight="1"
  21. android:text="date"
  22. android:textAlignment="viewEnd"
  23. app:layout_constraintRight_toRightOf="parent"
  24. tools:layout_editor_absoluteY="0dp" />
  25. <TextView
  26. android:id="@+id/home_list_desc"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_marginTop="16dp"
  30. android:layout_weight="1"
  31. android:text="TextView"
  32. app:layout_constraintTop_toBottomOf="@+id/home_list_title"
  33. tools:layout_editor_absoluteX="0dp" />
  34. </android.support.constraint.ConstraintLayout>