fragment_home.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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="match_parent"
  5. android:orientation="vertical"
  6. android:weightSum="1" >
  7. <FrameLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:layout_weight="1" >
  11. <de.tudarmstadt.informatik.hostage.ui2.fragment.HomeGLSurfaceView
  12. android:id="@+id/surfaceview"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent" />
  15. </FrameLayout>
  16. <RelativeLayout
  17. android:orientation="horizontal"
  18. android:layout_width="fill_parent"
  19. android:layout_height="wrap_content"
  20. android:weightSum="1"
  21. android:baselineAligned="false">
  22. <TextView
  23. android:id="@+id/textView"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="Current connection monitor"
  27. android:textStyle="bold"
  28. android:layout_centerVertical="true"
  29. android:layout_alignParentRight="false"
  30. android:layout_alignParentEnd="true"
  31. android:layout_gravity="center_horizontal"
  32. android:layout_weight="1"
  33. android:layout_alignParentLeft="true"
  34. android:layout_marginLeft="15dp" />
  35. <Switch
  36. android:id="@+id/switch1"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:layout_alignParentLeft="false"
  41. android:layout_marginLeft="0dp"
  42. android:layout_alignParentTop="false"
  43. android:layout_marginTop="0dp"
  44. android:layout_gravity="right"
  45. android:layout_alignParentEnd="false"
  46. android:layout_alignParentRight="true"
  47. android:layout_alignParentBottom="false"
  48. android:layout_marginRight="15dp"
  49. android:textSize="10sp"
  50. android:checked="true" />
  51. </RelativeLayout>
  52. <View
  53. android:layout_width="fill_parent"
  54. android:layout_height="1dp"
  55. android:layout_marginLeft="15dp"
  56. android:layout_marginRight="15dp"
  57. android:background="@android:color/darker_gray" />
  58. <LinearLayout
  59. android:layout_width="match_parent"
  60. android:layout_height="171dp"
  61. android:layout_marginLeft="15dp"
  62. android:layout_marginRight="15dp"
  63. android:orientation="vertical"
  64. android:weightSum="1"
  65. android:layout_gravity="bottom">
  66. <RelativeLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content">
  69. <TextView
  70. android:id="@+id/textView5"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:text="This network is being monitored by HosTaGe"
  74. android:textAppearance="?android:attr/textAppearanceSmall"
  75. android:textColor="@color/holo_dark_green"
  76. android:textSize="11sp"
  77. android:layout_gravity="center"
  78. android:layout_below="@+id/textView2"
  79. android:layout_centerHorizontal="true" />
  80. <TextView
  81. android:id="@+id/textView2"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_gravity="center_horizontal"
  85. android:text="Eduroam"
  86. android:textAppearance="?android:attr/textAppearanceLarge"
  87. android:textSize="26sp"
  88. android:layout_alignParentTop="true"
  89. android:layout_centerHorizontal="true"
  90. android:layout_marginTop="21dp" />
  91. <ImageView
  92. android:id="@+id/imageView"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:src="@android:drawable/presence_online"
  96. android:layout_marginRight="10dp"
  97. android:layout_alignBottom="@+id/textView5"
  98. android:layout_toLeftOf="@+id/textView5" />
  99. <ImageView
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:id="@+id/imageView2"
  103. android:src="@android:drawable/ic_menu_info_details"
  104. android:layout_alignParentTop="true"
  105. android:layout_alignParentRight="true"
  106. android:layout_alignParentEnd="true" />
  107. </RelativeLayout>
  108. <TextView
  109. android:id="@+id/textView3"
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:layout_gravity="center_horizontal"
  113. android:text="Insecure"
  114. android:textAppearance="@android:style/TextAppearance.Holo.Small"
  115. android:textColor="@color/holo_red"
  116. android:textSize="13sp"
  117. android:layout_marginTop="10dp" />
  118. <TextView
  119. android:id="@+id/textView4"
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:layout_gravity="center_horizontal"
  123. android:text="125 attacks recorded"
  124. android:textColor="@color/holo_red"
  125. android:textSize="11sp" />
  126. <RelativeLayout
  127. android:layout_width="fill_parent"
  128. android:layout_height="match_parent">
  129. <TextView
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:text="Active profile: "
  133. android:id="@+id/textView6"
  134. android:textStyle="bold"
  135. android:textSize="11sp"
  136. android:layout_alignParentTop="true"
  137. android:layout_centerHorizontal="true"
  138. android:layout_marginTop="10dp" />
  139. <TextView
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:text="Windows 7"
  143. android:id="@+id/textView7"
  144. android:textSize="11sp"
  145. android:layout_below="@+id/textView6"
  146. android:layout_centerHorizontal="true" />
  147. </RelativeLayout>
  148. </LinearLayout>
  149. </LinearLayout>