diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml')
-rw-r--r-- | third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml | 303 |
1 files changed, 303 insertions, 0 deletions
diff --git a/third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml b/third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml new file mode 100644 index 0000000000..c7fa5a9b31 --- /dev/null +++ b/third_party/libwebrtc/examples/androidvoip/res/layout/activity_main.xml @@ -0,0 +1,303 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/scroll_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:focusable="true" + android:focusableInTouchMode="true" + tools:context="org.webrtc.examples.androidvoip.MainActivity"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="8dp"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="15dp" + android:text="@string/local_endpoint_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <!--Local IP Adress--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/ip_address_text_view" + android:textSize="16dp" /> + + <TextView + android:id="@+id/local_ip_address_text_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:layout_marginRight="15dp" + android:textSize="16dp" /> + + </LinearLayout> + + <!--Local Port Number--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/port_number_text_view" + android:textSize="16dp" /> + + <EditText + android:id="@+id/local_port_number_edit_text" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:layout_weight="1" + android:text="10000" + android:inputType="number" + android:textSize="16dp" /> + + </LinearLayout> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="30dp" + android:text="@string/remote_endpoint_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <!--Remote IP Adress--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/ip_address_text_view" + android:textSize="16dp" /> + + <EditText + android:id="@+id/remote_ip_address_edit_text" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginRight="15dp" + android:layout_weight="1" + android:inputType="number" + android:digits="0123456789." + android:textSize="16dp" /> + + </LinearLayout> + + <!--Remote Port Number--> + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/port_number_text_view" + android:textSize="16dp" /> + + <EditText + android:id="@+id/remote_port_number_edit_text" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:layout_weight="1" + android:text="10000" + android:inputType="number" + android:textSize="16dp" /> + + </LinearLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="30dp" + android:text="@string/encoder_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <Spinner + android:id="@+id/encoder_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginTop="10dp"/> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_marginTop="20dp" + android:layout_gravity="center_vertical"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="15dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="25dp" + android:text="@string/decoder_text_view" + android:textSize="19dp" + android:textStyle="bold" + android:textColor="@color/almost_black" /> + + <Button + android:id="@+id/decoder_selection_button" + android:text="@string/decoder_selection_button" + style="?android:attr/buttonBarButtonStyle" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:layout_weight="1" /> + + </LinearLayout> + + + <TextView + android:id="@+id/decoders_text_view" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="15dp" + android:layout_marginBottom="30dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:text="@string/decoders_text_view_default" + android:textSize="16dp" /> + + + <RelativeLayout + android:id="@+id/switch_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="15dp" + android:visibility="gone" > + + <View + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" + android:layout_marginBottom="45dp" + android:background="@color/light_gray" /> + + <LinearLayout + android:id="@+id/start_send_switch_layout" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical" + android:layout_below="@id/divider" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="15dp" + android:gravity="left" + android:layout_weight="1" + android:text="@string/start_send_text_view" + android:textSize="16dp" /> + + <Switch + android:id="@+id/start_send_switch" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:gravity="right" + android:layout_weight="1" /> + + </LinearLayout> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="48dp" + android:layout_gravity="center_vertical" + android:layout_below="@id/start_send_switch_layout"> + + <TextView + android:id="@+id/start_playout_text_view" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginLeft="15dp" + android:gravity="left" + android:layout_weight="1" + android:text="@string/start_playout_text_view" + android:textSize="16dp" /> + + <Switch + android:id="@+id/start_playout_switch" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_marginRight="15dp" + android:gravity="right" + android:layout_weight="1" /> + + </LinearLayout> + + </RelativeLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical" > + + <ToggleButton + android:id="@+id/session_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:textOff="@string/session_button_text_off" + android:textOn="@string/session_button_text_on" + style="?android:attr/buttonStyle" /> + + </LinearLayout> + + </LinearLayout> + +</ScrollView> |