aboutsummaryrefslogtreecommitdiff
path: root/webrtc/examples/android/media_demo/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'webrtc/examples/android/media_demo/res/layout')
-rw-r--r--webrtc/examples/android/media_demo/res/layout/audiomenu.xml80
-rw-r--r--webrtc/examples/android/media_demo/res/layout/dropdownitems.xml17
-rw-r--r--webrtc/examples/android/media_demo/res/layout/mainmenu.xml26
-rw-r--r--webrtc/examples/android/media_demo/res/layout/settingsmenu.xml36
4 files changed, 159 insertions, 0 deletions
diff --git a/webrtc/examples/android/media_demo/res/layout/audiomenu.xml b/webrtc/examples/android/media_demo/res/layout/audiomenu.xml
new file mode 100644
index 0000000000..f35547062a
--- /dev/null
+++ b/webrtc/examples/android/media_demo/res/layout/audiomenu.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical">
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textStyle="bold"
+ android:textSize="24dip"
+ android:text="Audio Settings">
+ </TextView>
+ <TextView android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:layout_width="wrap_content"
+ android:text="@string/codecType">
+ </TextView>
+ <Spinner android:id="@+id/spAudioCodecType"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent">
+ </Spinner>
+ <LinearLayout android:layout_height="wrap_content"
+ android:layout_width="fill_parent">
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/aTxPort">
+ </TextView>
+ <EditText android:id="@+id/etATxPort"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:imeOptions="actionDone"
+ android:inputType="number">
+ </EditText>
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/aRxPort">
+ </TextView>
+ <EditText android:id="@+id/etARxPort"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:imeOptions="actionDone"
+ android:inputType="number">
+ </EditText>
+ </LinearLayout>
+ <LinearLayout android:layout_height="wrap_content"
+ android:layout_width="fill_parent">
+ <CheckBox android:id="@+id/cbAecm"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/aecm">
+ </CheckBox>
+ <CheckBox android:id="@+id/cbNoiseSuppression"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/noiseSuppression">
+ </CheckBox>
+ <CheckBox android:id="@+id/cbAutoGainControl"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/autoGainControl">
+ </CheckBox>
+ </LinearLayout>
+ <LinearLayout android:layout_height="wrap_content"
+ android:layout_width="fill_parent">
+ <CheckBox android:id="@+id/cbSpeaker"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/speaker">
+ </CheckBox>
+ <CheckBox android:id="@+id/cbDebugRecording"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/debugRecording">
+ </CheckBox>
+ <CheckBox android:id="@+id/cbAudioRTPDump"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/rtpDump">
+ </CheckBox>
+ </LinearLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/webrtc/examples/android/media_demo/res/layout/dropdownitems.xml b/webrtc/examples/android/media_demo/res/layout/dropdownitems.xml
new file mode 100644
index 0000000000..1014612000
--- /dev/null
+++ b/webrtc/examples/android/media_demo/res/layout/dropdownitems.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="3dip">
+ <TextView android:id="@+id/spinner_row"
+ android:layout_toRightOf="@+id/image"
+ android:padding="3dip"
+ android:layout_marginTop="2dip"
+ android:textColor="#FFF"
+ android:textStyle="bold"
+ android:text="description"
+ android:layout_marginLeft="5dip"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+</RelativeLayout> \ No newline at end of file
diff --git a/webrtc/examples/android/media_demo/res/layout/mainmenu.xml b/webrtc/examples/android/media_demo/res/layout/mainmenu.xml
new file mode 100644
index 0000000000..89f5399df7
--- /dev/null
+++ b/webrtc/examples/android/media_demo/res/layout/mainmenu.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="120dip"
+ android:layout_height="fill_parent">
+ <TextView android:id="@+id/tvStats"
+ android:layout_width="fill_parent"
+ android:layout_height="60dip"
+ android:textSize="6sp"
+ android:text=""/>
+ <Button android:id="@+id/btStats"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ android:text="@string/stats"/>
+ <Button android:id="@+id/btStartStopCall"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"/>
+ </LinearLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/webrtc/examples/android/media_demo/res/layout/settingsmenu.xml b/webrtc/examples/android/media_demo/res/layout/settingsmenu.xml
new file mode 100644
index 0000000000..4fba57eadc
--- /dev/null
+++ b/webrtc/examples/android/media_demo/res/layout/settingsmenu.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:layout_gravity="right"
+ android:orientation="vertical">
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textStyle="bold"
+ android:textSize="24dip"
+ android:text="@string/gSettings">
+ </TextView>
+ <LinearLayout android:orientation="horizontal"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent">
+ <CheckBox android:id="@+id/cbAudio"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/enableAudio">
+ </CheckBox>
+ <CheckBox android:id="@+id/cbLoopback"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/loopback">
+ </CheckBox>
+ </LinearLayout>
+ <TextView android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/remoteIp">
+ </TextView>
+ <EditText android:id="@+id/etRemoteIp"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:imeOptions="actionDone">
+ </EditText>
+</LinearLayout> \ No newline at end of file