notes_list_item.xml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:layout_margin="4dp"
  6. android:background="@drawable/note_item_background"
  7. android:orientation="vertical"
  8. android:padding="4dp">
  9. <TextView
  10. android:id="@+id/item_note_title"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:padding="4dp"
  14. android:text="@string/note_fragment_hint_title"
  15. android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
  16. <TextView
  17. android:id="@+id/item_note_body"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:ellipsize="end"
  21. android:maxLines="4"
  22. android:padding="4dp"
  23. android:text="@string/note_fragment_hint_body" />
  24. <TextView
  25. android:id="@+id/item_note_edited"
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:alpha="0.5"
  29. android:padding="4dp"
  30. android:text="@string/main_placeholder_clock"
  31. android:textSize="12sp" />
  32. </LinearLayout>