|
4 | 4 | xmlns:tools="http://schemas.android.com/tools" |
5 | 5 | android:layout_width="match_parent" |
6 | 6 | android:layout_height="match_parent" |
| 7 | + android:background="@color/white" |
7 | 8 | android:orientation="vertical" |
| 9 | + android:padding="5dp" |
8 | 10 | tools:context=".MainActivity"> |
9 | 11 |
|
10 | | - <TextView |
11 | | - android:id="@+id/idDisplayView" |
| 12 | + <LinearLayout |
12 | 13 | android:layout_width="match_parent" |
13 | 14 | android:layout_height="wrap_content" |
14 | | - android:layout_margin="10dp" /> |
| 15 | + android:gravity="center_vertical"> |
| 16 | + |
| 17 | + <TextView |
| 18 | + android:layout_width="wrap_content" |
| 19 | + android:layout_height="wrap_content" |
| 20 | + android:text="My Id:" |
| 21 | + android:textSize="17sp" |
| 22 | + android:textStyle="bold" /> |
| 23 | + |
| 24 | + <TextView |
| 25 | + android:id="@+id/idDisplayView" |
| 26 | + android:layout_width="0dp" |
| 27 | + android:layout_height="wrap_content" |
| 28 | + android:layout_margin="10dp" |
| 29 | + android:layout_weight="1" |
| 30 | + android:textIsSelectable="true" |
| 31 | + android:textSize="17sp" /> |
| 32 | + </LinearLayout> |
15 | 33 |
|
16 | 34 | <LinearLayout |
17 | 35 | android:id="@+id/incomingConnectRequestView" |
|
31 | 49 | android:orientation="horizontal"> |
32 | 50 |
|
33 | 51 | <Button |
| 52 | + style="@style/ButtonStyle" |
34 | 53 | android:id="@+id/acceptRequestButton" |
35 | 54 | android:layout_width="wrap_content" |
36 | 55 | android:layout_height="wrap_content" |
37 | 56 | android:text="Accept" /> |
38 | 57 |
|
39 | 58 | <Button |
| 59 | + style="@style/ButtonStyle" |
40 | 60 | android:id="@+id/declineRequestButton" |
41 | 61 | android:layout_width="wrap_content" |
42 | 62 | android:layout_height="wrap_content" |
|
59 | 79 |
|
60 | 80 | <Button |
61 | 81 | android:id="@+id/connectToPeerButton" |
| 82 | + style="@style/ButtonStyle" |
62 | 83 | android:layout_width="wrap_content" |
63 | 84 | android:layout_height="wrap_content" |
64 | 85 | android:text="Connect" /> |
65 | 86 |
|
66 | 87 | <Button |
67 | 88 | android:id="@+id/endConnectionButton" |
| 89 | + style="@style/ButtonStyle" |
68 | 90 | android:layout_width="wrap_content" |
69 | 91 | android:layout_height="wrap_content" |
70 | 92 | android:text="End" /> |
|
81 | 103 | android:orientation="horizontal"> |
82 | 104 |
|
83 | 105 | <LinearLayout |
84 | | - android:orientation="vertical" |
85 | 106 | android:layout_width="0dp" |
86 | 107 | android:layout_height="wrap_content" |
87 | | - android:layout_weight="1"> |
| 108 | + android:layout_weight="1" |
| 109 | + android:orientation="vertical"> |
88 | 110 |
|
89 | 111 | <shim.shim.androidpeerrtc.view.MediaSourceView |
90 | 112 | android:id="@+id/ownVideoView" |
91 | 113 | android:layout_width="match_parent" |
92 | | - android:layout_height="200dp" |
| 114 | + android:layout_height="150dp" |
93 | 115 | app:cameraType="back" |
94 | 116 | app:mediaType="video" /> |
95 | 117 |
|
96 | 118 | <Button |
97 | 119 | android:id="@+id/switchCamButton" |
| 120 | + style="@style/ButtonStyle" |
98 | 121 | android:layout_width="wrap_content" |
99 | 122 | android:layout_height="wrap_content" |
100 | | - android:text="Switch Cam"/> |
| 123 | + android:text="Switch Cam" /> |
101 | 124 | </LinearLayout> |
102 | 125 |
|
103 | 126 | <shim.shim.androidpeerrtc.view.MediaSourceView |
104 | 127 | android:id="@+id/receivedVideoView" |
105 | 128 | android:layout_width="0dp" |
106 | | - android:layout_height="200dp" |
| 129 | + android:layout_height="150dp" |
| 130 | + android:layout_marginLeft="10dp" |
107 | 131 | android:layout_weight="1" |
108 | 132 | app:mediaType="video" /> |
109 | 133 |
|
110 | 134 | </LinearLayout> |
111 | 135 |
|
| 136 | + |
112 | 137 | <ScrollView |
113 | 138 | android:layout_width="match_parent" |
114 | 139 | android:layout_height="0dp" |
115 | | - android:layout_weight="1"> |
| 140 | + android:layout_weight="1" |
| 141 | + android:fillViewport="true"> |
116 | 142 |
|
117 | 143 | <TextView |
118 | 144 | android:id="@+id/messageBox" |
119 | 145 | android:layout_width="match_parent" |
120 | | - android:layout_height="wrap_content" /> |
| 146 | + android:layout_height="wrap_content" |
| 147 | + android:background="@color/gray" /> |
121 | 148 |
|
122 | 149 | </ScrollView> |
123 | 150 |
|
124 | | - |
125 | 151 | <LinearLayout |
126 | 152 | android:layout_width="match_parent" |
127 | 153 | android:layout_height="wrap_content" |
|
132 | 158 | android:layout_width="0dp" |
133 | 159 | android:layout_height="wrap_content" |
134 | 160 | android:layout_weight="1" |
| 161 | + android:hint="Message" |
135 | 162 | android:inputType="text" /> |
136 | 163 |
|
137 | 164 | <Button |
138 | 165 | android:id="@+id/sendMessageButton" |
| 166 | + style="@style/ButtonStyle" |
139 | 167 | android:layout_width="wrap_content" |
140 | 168 | android:layout_height="wrap_content" |
141 | 169 | android:text="Send" /> |
142 | 170 |
|
143 | 171 | <Button |
144 | 172 | android:id="@+id/sendFileButton" |
| 173 | + style="@style/ButtonStyle" |
145 | 174 | android:layout_width="wrap_content" |
146 | 175 | android:layout_height="wrap_content" |
147 | 176 | android:text="Send File" /> |
148 | 177 |
|
149 | 178 |
|
150 | 179 | </LinearLayout> |
151 | 180 |
|
| 181 | + <TextView |
| 182 | + android:layout_width="wrap_content" |
| 183 | + android:layout_height="wrap_content" |
| 184 | + android:text="Incoming File:" |
| 185 | + android:textSize="17sp" |
| 186 | + android:textStyle="bold" /> |
| 187 | + |
152 | 188 | <LinearLayout |
153 | 189 | android:layout_width="match_parent" |
154 | 190 | android:layout_height="wrap_content" |
155 | 191 | android:orientation="horizontal"> |
156 | 192 |
|
157 | 193 | <ImageView |
158 | 194 | android:id="@+id/file_preview_bitmap" |
159 | | - android:layout_width="100dp" |
160 | | - android:layout_height="100dp" /> |
| 195 | + android:layout_width="90dp" |
| 196 | + android:layout_height="90dp" /> |
161 | 197 |
|
162 | 198 | <LinearLayout |
163 | 199 | android:layout_width="match_parent" |
|
0 commit comments