services_list_item.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <RelativeLayout android:layout_width="fill_parent"
  7. android:layout_height="wrap_content"
  8. android:baselineAligned="false"
  9. android:orientation="horizontal"
  10. android:weightSum="1">
  11. <View android:id="@+id/services_circle"
  12. android:layout_width="25dp" android:layout_height="25dp"
  13. android:layout_marginLeft="12dp"
  14. android:layout_marginTop="10dp"
  15. android:background="@drawable/services_circle" />
  16. <TextView
  17. android:id="@+id/services_item_name"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_alignParentEnd="true"
  21. android:layout_alignParentLeft="true"
  22. android:layout_alignParentRight="false"
  23. android:layout_marginLeft="50dp"
  24. android:layout_marginTop="5dp"
  25. android:layout_weight="1"
  26. android:textStyle="bold"
  27. android:textSize="16dp"/>
  28. <TextView
  29. android:id="@+id/services_item_rec_attacks"
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_alignParentLeft="true"
  33. android:layout_marginLeft="50dp"
  34. android:layout_marginTop="25dp"
  35. android:layout_weight="1"
  36. android:text="@string/recorded_attacks"
  37. android:textStyle="bold"
  38. android:textSize="12dp"/>
  39. <Switch
  40. android:id="@+id/services_item_switch"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_alignParentBottom="false"
  44. android:layout_alignParentEnd="false"
  45. android:layout_alignParentLeft="false"
  46. android:layout_alignParentRight="true"
  47. android:layout_alignParentTop="false"
  48. android:layout_gravity="right"
  49. android:layout_marginLeft="0dp"
  50. android:layout_marginTop="8dp"
  51. android:layout_marginBottom="0dp"
  52. android:layout_weight="1"
  53. android:checked="false"
  54. android:textSize="10dp" />
  55. </RelativeLayout>
  56. </LinearLayout>