fragment_home.xml 6.5 KB

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