fragment_home.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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.opengl.HomeGLSurfaceView
  12. android:id="@+id/surfaceview"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent" />
  15. </FrameLayout>
  16. <RelativeLayout
  17. android:layout_width="fill_parent"
  18. android:layout_height="wrap_content"
  19. android:baselineAligned="false"
  20. android:orientation="horizontal"
  21. android:weightSum="1" >
  22. <TextView
  23. android:id="@+id/textView"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_alignParentEnd="true"
  27. android:layout_alignParentLeft="true"
  28. android:layout_alignParentRight="false"
  29. android:layout_centerVertical="true"
  30. android:layout_gravity="center_horizontal"
  31. android:layout_marginLeft="15dp"
  32. android:layout_weight="1"
  33. android:text="Monitor current connection"
  34. android:textStyle="bold" />
  35. <Switch
  36. android:id="@+id/switch1"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_alignParentBottom="false"
  40. android:layout_alignParentEnd="false"
  41. android:layout_alignParentLeft="false"
  42. android:layout_alignParentRight="true"
  43. android:layout_alignParentTop="false"
  44. android:layout_gravity="right"
  45. android:layout_marginLeft="0dp"
  46. android:layout_marginRight="15dp"
  47. android:layout_marginTop="0dp"
  48. android:layout_weight="1"
  49. android:checked="true"
  50. android:textSize="10sp" />
  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_gravity="bottom"
  62. android:layout_marginLeft="15dp"
  63. android:layout_marginRight="15dp"
  64. android:orientation="vertical"
  65. android:weightSum="1" >
  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:layout_below="@+id/textView2"
  74. android:layout_centerHorizontal="true"
  75. android:layout_gravity="center"
  76. android:text="This network is being monitored by HosTaGe"
  77. android:textAppearance="?android:attr/textAppearanceSmall"
  78. android:textColor="@color/holo_dark_green"
  79. android:textSize="11sp" />
  80. <TextView
  81. android:id="@+id/textView2"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_alignParentTop="true"
  85. android:layout_centerHorizontal="true"
  86. android:layout_gravity="center_horizontal"
  87. android:layout_marginTop="21dp"
  88. android:text="Eduroam"
  89. android:textAppearance="?android:attr/textAppearanceLarge"
  90. android:textSize="26sp" />
  91. <ImageView
  92. android:id="@+id/imageView"
  93. android:layout_width="wrap_content"
  94. android:layout_height="wrap_content"
  95. android:layout_alignBottom="@+id/textView5"
  96. android:layout_marginRight="10dp"
  97. android:layout_toLeftOf="@+id/textView5"
  98. android:src="@android:drawable/presence_online" />
  99. <ImageView
  100. android:id="@+id/imageView2"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_alignParentEnd="true"
  104. android:layout_alignParentRight="true"
  105. android:layout_alignParentTop="true"
  106. android:src="@android:drawable/ic_menu_info_details" />
  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:layout_marginTop="10dp"
  114. android:text="Insecure"
  115. android:textAppearance="@android:style/TextAppearance.Holo.Small"
  116. android:textColor="@color/holo_red"
  117. android:textSize="13sp" />
  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:id="@+id/textView6"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:layout_alignParentTop="true"
  134. android:layout_centerHorizontal="true"
  135. android:layout_marginTop="10dp"
  136. android:text="Active profile: "
  137. android:textSize="11sp"
  138. android:textStyle="bold" />
  139. <TextView
  140. android:id="@+id/textView7"
  141. android:layout_width="wrap_content"
  142. android:layout_height="wrap_content"
  143. android:layout_below="@+id/textView6"
  144. android:layout_centerHorizontal="true"
  145. android:text="Windows 7"
  146. android:textSize="11sp" />
  147. </RelativeLayout>
  148. </LinearLayout>
  149. </LinearLayout>