fragment_contacts.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ch.threema.app.ui.LockingSwipeRefreshLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:id="@+id/swipe_container"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent">
  8. <FrameLayout android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:background="?android:windowBackground">
  11. <include layout="@layout/header_contact_section_work"/>
  12. <ListView
  13. android:id="@android:id/list"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:fastScrollEnabled="true"
  17. android:fastScrollAlwaysVisible="true"
  18. android:listSelector="@drawable/listitem_background_selector"
  19. android:footerDividersEnabled="true"
  20. android:scrollbarStyle="outsideOverlay"/>
  21. <FrameLayout
  22. android:id="@+id/initial_sticky_layout"
  23. android:layout_width="wrap_content"
  24. android:layout_height="@dimen/listitem_contact_height"
  25. android:paddingLeft="16dp"
  26. android:background="?android:windowBackground">
  27. <ch.threema.app.emojis.EmojiTextView
  28. android:id="@+id/initial_sticky"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_gravity="left|center_vertical"
  32. android:textColor="@null"
  33. android:textAppearance="@style/Threema.Material.Header.Big.Text"
  34. android:text=""/>
  35. <!-- textColor="@null" -> https://stackoverflow.com/a/45198884 -->
  36. </FrameLayout>
  37. <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
  38. android:id="@+id/floating"
  39. app:icon="@drawable/ic_add_white_24dp"
  40. android:layout_height="wrap_content"
  41. android:layout_width="wrap_content"
  42. android:layout_margin="@dimen/floating_button_margin"
  43. android:layout_gravity="bottom|right"
  44. android:contentDescription="@string/menu_add_contact"
  45. android:text="@string/menu_add_contact"
  46. app:layout_constraintBottom_toBottomOf="parent"
  47. app:layout_constraintLeft_toLeftOf="parent"
  48. app:layout_constraintRight_toRightOf="parent"
  49. app:layout_anchor="@id/pager"
  50. app:layout_anchorGravity="bottom|right|end"
  51. android:clickable="true"/>
  52. </FrameLayout>
  53. </ch.threema.app.ui.LockingSwipeRefreshLayout>