1 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
---|
2 | xmlns:tools="http://schemas.android.com/tools"
|
---|
3 | android:id="@+id/parent"
|
---|
4 | android:layout_width="match_parent"
|
---|
5 | android:layout_height="match_parent"
|
---|
6 | android:scrollbars="vertical"
|
---|
7 | android:visibility="visible" >
|
---|
8 |
|
---|
9 | <TextView
|
---|
10 | android:id="@+id/connectedto"
|
---|
11 | android:layout_width="wrap_content"
|
---|
12 | android:layout_height="wrap_content"
|
---|
13 | android:layout_alignParentLeft="true"
|
---|
14 | android:layout_toLeftOf="@+id/btnDisconnect"
|
---|
15 | android:text="@string/not_connected"
|
---|
16 | android:textSize="25sp"
|
---|
17 | android:visibility="visible" />
|
---|
18 |
|
---|
19 | <Button
|
---|
20 | android:id="@+id/btnConnect"
|
---|
21 | android:layout_width="wrap_content"
|
---|
22 | android:layout_height="wrap_content"
|
---|
23 | android:layout_alignParentRight="true"
|
---|
24 | android:layout_below="@+id/connectedto"
|
---|
25 | android:text="@string/connect_button" />
|
---|
26 |
|
---|
27 | <EditText
|
---|
28 | android:id="@+id/serverURI"
|
---|
29 | android:layout_width="wrap_content"
|
---|
30 | android:layout_height="wrap_content"
|
---|
31 | android:layout_alignBottom="@+id/btnConnect"
|
---|
32 | android:layout_alignParentLeft="true"
|
---|
33 | android:layout_alignTop="@+id/btnConnect"
|
---|
34 | android:layout_toLeftOf="@+id/btnConnect"
|
---|
35 | android:ems="10"
|
---|
36 | android:focusableInTouchMode="false"
|
---|
37 | android:inputType="textUri"
|
---|
38 | android:minLines="1" />
|
---|
39 |
|
---|
40 | <TextView
|
---|
41 | android:id="@+id/camerasDetected"
|
---|
42 | android:layout_width="wrap_content"
|
---|
43 | android:layout_height="wrap_content"
|
---|
44 | android:layout_below="@id/connectedto"
|
---|
45 | android:layout_marginTop="22dp"
|
---|
46 | android:text="@string/noCameras"
|
---|
47 | android:textAppearance="?android:attr/textAppearanceLarge"
|
---|
48 | android:textSize="20sp"
|
---|
49 | android:visibility="invisible" />
|
---|
50 |
|
---|
51 | <Button
|
---|
52 | android:id="@+id/btnDetectCameras"
|
---|
53 | android:layout_width="wrap_content"
|
---|
54 | android:layout_height="wrap_content"
|
---|
55 | android:layout_alignBaseline="@+id/camerasDetected"
|
---|
56 | android:layout_alignBottom="@+id/camerasDetected"
|
---|
57 | android:layout_marginLeft="22dp"
|
---|
58 | android:layout_toRightOf="@+id/camerasDetected"
|
---|
59 | android:text="@string/detectCams"
|
---|
60 | android:visibility="invisible" />
|
---|
61 |
|
---|
62 | <Button
|
---|
63 | android:id="@+id/btnDisconnect"
|
---|
64 | android:layout_width="wrap_content"
|
---|
65 | android:layout_height="wrap_content"
|
---|
66 | android:layout_alignParentRight="true"
|
---|
67 | android:layout_alignParentTop="true"
|
---|
68 | android:text="@string/disconnect"
|
---|
69 | android:visibility="invisible" />
|
---|
70 |
|
---|
71 | <Button
|
---|
72 | android:id="@+id/btnCapture"
|
---|
73 | android:layout_width="wrap_content"
|
---|
74 | android:layout_height="wrap_content"
|
---|
75 | android:layout_below="@+id/btnDetectCameras"
|
---|
76 | android:layout_centerHorizontal="true"
|
---|
77 | android:layout_centerInParent="true"
|
---|
78 | android:layout_marginTop="23dp"
|
---|
79 | android:text="@string/capture"
|
---|
80 | android:textSize="40sp"
|
---|
81 | android:textStyle="bold"
|
---|
82 | android:visibility="gone" />
|
---|
83 |
|
---|
84 | <Button
|
---|
85 | android:id="@+id/btnShutdown"
|
---|
86 | android:layout_width="wrap_content"
|
---|
87 | android:layout_height="wrap_content"
|
---|
88 | android:layout_alignParentBottom="true"
|
---|
89 | android:layout_alignParentRight="true"
|
---|
90 | android:text="@string/shutdown"
|
---|
91 | android:visibility="gone" />
|
---|
92 |
|
---|
93 | <ImageView
|
---|
94 | android:id="@+id/Montage"
|
---|
95 | android:layout_width="wrap_content"
|
---|
96 | android:layout_height="wrap_content"
|
---|
97 | android:layout_above="@+id/btnShutdown"
|
---|
98 | android:layout_alignParentBottom="true"
|
---|
99 | android:layout_alignParentLeft="true"
|
---|
100 | android:layout_alignParentRight="true"
|
---|
101 | android:layout_below="@+id/captured"
|
---|
102 | android:baselineAlignBottom="true"
|
---|
103 | android:contentDescription="@string/montageDesc"
|
---|
104 | android:minHeight="150px"
|
---|
105 | android:minWidth="150px"
|
---|
106 | android:visibility="gone" />
|
---|
107 |
|
---|
108 | <TextView
|
---|
109 | android:id="@+id/captured"
|
---|
110 | android:layout_width="wrap_content"
|
---|
111 | android:layout_height="wrap_content"
|
---|
112 | android:layout_alignLeft="@id/btnCapture"
|
---|
113 | android:layout_alignRight="@+id/btnCapture"
|
---|
114 | android:layout_below="@+id/btnCapture"
|
---|
115 | android:visibility="gone" />
|
---|
116 |
|
---|
117 | </RelativeLayout>
|
---|