fragment_home.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.ui.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/record_details_text_ssid"
  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="@string/monitor_current_connection"
  35. android:textStyle="bold" />
  36. <Switch
  37. android:id="@+id/home_switch_connection"
  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="false"
  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_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/home_text_name"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:layout_alignParentTop="true"
  74. android:layout_centerHorizontal="true"
  75. android:layout_gravity="center_horizontal"
  76. android:layout_marginTop="21dp"
  77. android:textAppearance="?android:attr/textAppearanceLarge"
  78. android:textSize="26sp" />
  79. <ImageView
  80. android:id="@+id/home_button_connection_info"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:src="@android:drawable/ic_menu_info_details"
  84. android:layout_alignTop="@+id/home_text_name"
  85. android:layout_alignParentRight="true"
  86. android:layout_alignParentEnd="true"/>
  87. </RelativeLayout>
  88. <TextView
  89. android:id="@+id/home_text_security"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_gravity="center_horizontal"
  93. android:layout_marginTop="10dp"
  94. android:text="@string/insecure"
  95. android:textAppearance="@android:style/TextAppearance.Holo.Small"
  96. android:textColor="@color/holo_red"
  97. android:textSize="13sp" />
  98. <TextView
  99. android:id="@+id/home_text_attacks"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_gravity="center_horizontal"
  103. android:textColor="@color/holo_red"
  104. android:textSize="11sp" />
  105. <RelativeLayout
  106. android:layout_width="fill_parent"
  107. android:layout_height="match_parent" android:id="@+id/home_profile_details"
  108. >
  109. <TextView
  110. android:id="@+id/home_text_profile_header"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:layout_alignParentTop="true"
  114. android:layout_centerHorizontal="true"
  115. android:text="@string/active_profile"
  116. android:textSize="11sp"
  117. android:textStyle="bold"
  118. android:layout_marginTop="15dp"/>
  119. <TextView
  120. android:id="@+id/home_text_profile"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_below="@+id/home_text_profile_header"
  124. android:layout_centerHorizontal="true"
  125. android:textSize="11sp" />
  126. <ImageView
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:id="@+id/home_image_profile"
  130. android:src="@drawable/ic_launcher"
  131. android:scaleType="fitCenter"
  132. android:layout_alignBottom="@+id/home_text_profile"
  133. android:layout_toLeftOf="@+id/home_text_profile"
  134. android:layout_alignTop="@+id/home_text_profile_header"/>
  135. </RelativeLayout>
  136. </LinearLayout>
  137. </LinearLayout>