fragment_home.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. <TextView
  17. android:id="@+id/textView"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginBottom="5dp"
  21. android:layout_marginLeft="15dp"
  22. android:layout_marginRight="15dp"
  23. android:layout_marginTop="5dp"
  24. android:layout_weight="0"
  25. android:text="Current connection"
  26. android:textStyle="bold" />
  27. <View
  28. android:layout_width="fill_parent"
  29. android:layout_height="1dp"
  30. android:layout_marginLeft="15dp"
  31. android:layout_marginRight="15dp"
  32. android:background="@android:color/darker_gray" />
  33. <LinearLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_marginLeft="15dp"
  37. android:layout_marginRight="15dp"
  38. android:orientation="vertical"
  39. android:weightSum="1" >
  40. <TextView
  41. android:id="@+id/textView2"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_gravity="center_horizontal"
  45. android:layout_marginTop="20dp"
  46. android:text="Eduroam"
  47. android:textAppearance="?android:attr/textAppearanceLarge"
  48. android:textSize="26sp" />
  49. <TextView
  50. android:id="@+id/textView3"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_gravity="center_horizontal"
  54. android:text="Insecure"
  55. android:textAppearance="@android:style/TextAppearance.Holo.Small"
  56. android:textColor="@color/holo_red"
  57. android:textSize="13sp" />
  58. <TextView
  59. android:id="@+id/textView4"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_gravity="center_horizontal"
  63. android:text="125 attacks recorded"
  64. android:textColor="@color/holo_red"
  65. android:textSize="11sp" />
  66. <RelativeLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="79dp"
  69. android:layout_weight="0.32" >
  70. <TextView
  71. android:id="@+id/textView5"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_centerHorizontal="true"
  75. android:layout_centerVertical="true"
  76. android:text="This network is monitored by HosTaGe"
  77. android:textAppearance="?android:attr/textAppearanceSmall"
  78. android:textColor="@color/holo_dark_green"
  79. android:textSize="11sp" />
  80. <ImageView
  81. android:id="@+id/imageView"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_centerVertical="true"
  85. android:layout_marginRight="19dp"
  86. android:layout_toLeftOf="@+id/textView5"
  87. android:src="@android:drawable/presence_online" />
  88. <Switch
  89. android:id="@+id/switch1"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_alignParentBottom="true"
  93. android:layout_centerHorizontal="true"
  94. android:text="Monitoring:" />
  95. </RelativeLayout>
  96. </LinearLayout>
  97. <View
  98. android:layout_width="fill_parent"
  99. android:layout_height="1dp"
  100. android:layout_marginLeft="15dp"
  101. android:layout_marginRight="15dp"
  102. android:layout_marginTop="10dp"
  103. android:background="@android:color/darker_gray" />
  104. </LinearLayout>