fragment_services.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:orientation="horizontal"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <RelativeLayout
  7. android:layout_width="fill_parent"
  8. android:layout_height="wrap_content"
  9. android:layout_weight="3">
  10. <LinearLayout android:layout_width="fill_parent"
  11. android:layout_height="wrap_content"
  12. android:orientation="vertical">
  13. <LinearLayout android:layout_width="fill_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="vertical"
  16. android:layout_weight="1"
  17. android:layout_marginTop="20dp"
  18. android:layout_marginLeft="15dp">
  19. <ImageView
  20. android:id="@+id/services_button_connection_info"
  21. android:layout_width="fill_parent"
  22. android:layout_height="wrap_content"
  23. android:scaleType="fitEnd"
  24. android:src="@android:drawable/ic_menu_info_details"/>
  25. <TextView
  26. android:id="@+id/textView"
  27. android:layout_width="fill_parent"
  28. android:layout_height="0dip"
  29. android:layout_marginLeft="15dp"
  30. android:layout_weight="1"
  31. android:layout_marginTop="0dp"
  32. android:text="@string/current_connection"
  33. android:textSize="18sp"
  34. android:textStyle="bold" />
  35. </LinearLayout>
  36. <RelativeLayout android:layout_width="fill_parent"
  37. android:layout_height="wrap_content"
  38. android:orientation="horizontal"
  39. android:layout_weight="1"
  40. android:layout_gravity="center_vertical"
  41. android:layout_marginLeft="15dp"
  42. android:layout_marginTop="5dp">
  43. <View
  44. android:layout_width="fill_parent"
  45. android:layout_height="1dp"
  46. android:layout_weight="1"
  47. android:layout_marginLeft="15dp"
  48. android:layout_marginRight="15dp"
  49. android:background="@android:color/darker_gray" />
  50. <TextView
  51. android:id="@+id/services_text_name"
  52. android:layout_width="fill_parent"
  53. android:layout_height="wrap_content"
  54. android:layout_marginTop="10dp"
  55. android:layout_marginLeft="15dp"
  56. android:layout_marginRight="15dp"
  57. android:layout_alignParentTop="false"
  58. android:layout_centerHorizontal="true"
  59. android:layout_gravity="center_horizontal"
  60. android:text="Eduroam"
  61. android:textAppearance="?android:attr/textAppearanceLarge"
  62. android:textSize="26sp" />
  63. </RelativeLayout>
  64. </LinearLayout>
  65. </RelativeLayout>
  66. <LinearLayout android:layout_width="fill_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_weight="2"
  69. android:orientation="vertical">
  70. <RelativeLayout
  71. android:layout_width="fill_parent"
  72. android:layout_height="wrap_content"
  73. android:baselineAligned="false"
  74. android:orientation="horizontal"
  75. android:weightSum="1" >
  76. <TextView
  77. android:id="@+id/textView"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_alignParentEnd="true"
  81. android:layout_alignParentLeft="true"
  82. android:layout_alignParentRight="false"
  83. android:layout_marginLeft="15dp"
  84. android:layout_marginTop="35dp"
  85. android:text="@string/monitor_services"
  86. android:textStyle="bold"
  87. android:textSize="20sp"/>
  88. <Switch
  89. android:id="@+id/service_switch_connection"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_alignParentBottom="false"
  93. android:layout_alignParentEnd="false"
  94. android:layout_alignParentLeft="false"
  95. android:layout_alignParentRight="true"
  96. android:layout_alignParentTop="false"
  97. android:layout_gravity="right"
  98. android:layout_marginLeft="0dp"
  99. android:layout_marginRight="15dp"
  100. android:layout_marginTop="30dp"
  101. android:layout_marginBottom="0dp"
  102. android:checked="false"
  103. android:textSize="10sp" />
  104. </RelativeLayout>
  105. <View
  106. android:layout_width="fill_parent"
  107. android:layout_height="1dp"
  108. android:layout_marginLeft="15dp"
  109. android:layout_marginRight="15dp"
  110. android:background="@android:color/darker_gray" />
  111. <ListView android:layout_width="fill_parent"
  112. android:layout_height="wrap_content"
  113. android:id="@+id/services_list_view"
  114. android:layout_marginLeft="15dp"
  115. android:layout_marginRight="15dp"
  116. >
  117. </ListView>
  118. </LinearLayout>
  119. </LinearLayout>