|
@@ -0,0 +1,128 @@
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
+ android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
+ android:paddingRight="@dimen/activity_horizontal_margin"
|
|
|
+ android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
+ tools:context=".MainActivity" >
|
|
|
+
|
|
|
+ <ViewAnimator
|
|
|
+ android:id="@+id/viewAnimator"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent" >
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textViewStatus"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_above="@+id/imageViewLight"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:text="@string/status"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/imageViewLight"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:src="@drawable/light_grey_large" />
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/checkBoxParanoid"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
+ android:text="@string/paranoid" />
|
|
|
+
|
|
|
+ <ToggleButton
|
|
|
+ android:id="@+id/toggleButtonOnOff"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:onClick="buttonOnOffClick"
|
|
|
+ android:textOff="@string/capital_off"
|
|
|
+ android:textOn="@string/capital_on" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textViewDetails"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/details"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textViewSSID"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:text="@string/ssid"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textViewSSIDValue"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingLeft="5dp"
|
|
|
+ android:text="-"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content" >
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textViewIP"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingLeft="20dp"
|
|
|
+ android:text="@string/ip"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textViewIPValue"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingLeft="5dp"
|
|
|
+ android:text="-"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/TextViewServices"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/services"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
+
|
|
|
+ <ListView
|
|
|
+ android:id="@+id/listViewProtocols"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:divider="#b5b5b5"
|
|
|
+ android:dividerHeight="1dp"
|
|
|
+ android:entries="@array/protocols" >
|
|
|
+ </ListView>
|
|
|
+ </LinearLayout>
|
|
|
+ </ViewAnimator>
|
|
|
+
|
|
|
+</RelativeLayout>
|