profile_manager_list_item.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="wrap_content"
  5. android:layout_height="wrap_content"
  6. android:layout_alignParentLeft="true"
  7. android:layout_marginLeft="0dp"
  8. android:layout_alignParentTop="true"
  9. android:layout_marginTop="0dp"
  10. >
  11. <RelativeLayout
  12. android:id="@+id/swipelist_backview"
  13. android:orientation="horizontal"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:background="@drawable/panel_white_bg">
  17. <LinearLayout
  18. android:orientation="horizontal"
  19. android:layout_width="fill_parent"
  20. android:layout_height="fill_parent"
  21. >
  22. <ImageButton
  23. android:layout_width="0dp"
  24. android:layout_height="match_parent"
  25. android:id="@+id/profile_manager_item_button_edit"
  26. android:layout_weight="1"
  27. style="@android:style/DeviceDefault.Light.ButtonBar"
  28. android:layout_alignParentTop="true"
  29. android:layout_alignParentLeft="true"
  30. android:layout_alignParentStart="true"
  31. android:src="@drawable/ic_edit"/>
  32. <View
  33. android:layout_width="1dp"
  34. android:layout_height="match_parent"
  35. android:background="@color/light_grey"
  36. android:layout_marginTop="10dp"
  37. android:layout_marginBottom="10dp"
  38. android:id="@+id/profile_manager_item_seperator"/>
  39. <ImageButton
  40. android:layout_width="0dp"
  41. android:layout_height="match_parent"
  42. android:id="@+id/profile_manager_item_button_delete"
  43. android:layout_alignParentTop="true"
  44. android:layout_alignParentRight="true"
  45. android:layout_alignParentEnd="true"
  46. android:layout_weight="1"
  47. style="@android:style/DeviceDefault.Light.ButtonBar"
  48. android:focusable="false"
  49. android:layout_marginTop="0dp"
  50. android:src="@drawable/ic_discard"/>
  51. </LinearLayout>
  52. </RelativeLayout>
  53. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  54. android:id="@+id/swipelist_frontview"
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent"
  57. android:padding="5dp"
  58. android:baselineAligned="false"
  59. android:background="@drawable/panel_bg_selector">
  60. <TextView
  61. android:id="@+id/profile_manager_item_label"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:textAppearance="?android:attr/textAppearanceListItemSmall"
  65. android:gravity="center_vertical"
  66. android:paddingLeft="16dp"
  67. android:paddingRight="16dp"
  68. android:textColor="?android:attr/colorForeground"
  69. android:minHeight="?android:attr/listPreferredItemHeightSmall"
  70. android:layout_alignParentTop="true"
  71. android:layout_toRightOf="@+id/profile_manager_item_image" />
  72. <TextView
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:id="@+id/profile_manager_item_text"
  76. android:paddingLeft="16dp"
  77. android:paddingRight="16dp"
  78. android:paddingBottom="16dp"
  79. android:textColor="#808080"
  80. android:visibility="visible"
  81. android:singleLine="false"
  82. android:layout_alignParentLeft="true"
  83. android:layout_alignParentStart="true"
  84. android:layout_below="@+id/profile_manager_item_label"
  85. android:paddingTop="10dp"
  86. android:layout_toLeftOf="@+id/profile_manager_item_activated"/>
  87. <ImageView
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:id="@+id/profile_manager_item_activated"
  91. android:src="@drawable/ic_action_accept"
  92. android:layout_alignParentRight="true"
  93. android:layout_alignParentEnd="false"
  94. android:layout_marginRight="20dp"
  95. android:visibility="visible"
  96. android:layout_marginLeft="20dp"
  97. android:baselineAlignBottom="false" android:layout_above="@+id/badges_container" android:layout_alignTop="@+id/profile_manager_item_label"/>
  98. <ImageView
  99. android:layout_width="48dp"
  100. android:layout_height="48dp"
  101. android:id="@+id/profile_manager_item_image"
  102. android:src="@drawable/ic_launcher"
  103. android:layout_above="@+id/profile_manager_item_text"
  104. android:layout_alignParentLeft="true"
  105. android:layout_alignParentStart="true" android:scaleType="centerInside"/>
  106. <de.tudarmstadt.informatik.hostage.ui.layouts.FlowLayout
  107. xmlns:f="http://schemas.android.com/apk/res/de.tudarmstadt.informatik.hostage"
  108. android:orientation="horizontal"
  109. android:layout_width="fill_parent"
  110. android:layout_height="fill_parent"
  111. android:layout_below="@+id/profile_manager_item_text"
  112. android:padding="10dp"
  113. f:horizontalSpacing="10dip"
  114. f:verticalSpacing="10dip"
  115. android:layout_alignParentRight="true"
  116. android:layout_alignParentEnd="false"
  117. android:id="@+id/badges_container">
  118. <TextView
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:textAppearance="?android:attr/textAppearanceSmall"
  122. style="@style/ProfileManagerListBadge"
  123. android:id="@+id/record_details_text_ssid" android:layout_gravity="center_vertical" android:layout_marginLeft="10dp"/>
  124. </de.tudarmstadt.informatik.hostage.ui.layouts.FlowLayout>
  125. </RelativeLayout>
  126. </FrameLayout>