131 líneas
4.7 KiB
XML
131 líneas
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:background="@color/background_color">
|
|
|
|
<!-- Video Views Container -->
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:background="@color/video_background">
|
|
|
|
<!-- Remote Video View (Full Screen) -->
|
|
<org.webrtc.SurfaceViewRenderer
|
|
android:id="@+id/remote_video_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!-- Local Video View (Picture in Picture) -->
|
|
<org.webrtc.SurfaceViewRenderer
|
|
android:id="@+id/local_video_view"
|
|
android:layout_width="120dp"
|
|
android:layout_height="160dp"
|
|
android:layout_gravity="top|end"
|
|
android:layout_margin="16dp"
|
|
android:background="@drawable/video_border" />
|
|
|
|
<!-- Video Controls -->
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|center"
|
|
android:layout_marginBottom="16dp"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/control_background"
|
|
android:padding="8dp">
|
|
|
|
<Button
|
|
android:id="@+id/btn_toggle_video"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/btn_round_background"
|
|
android:text="📹"
|
|
android:textSize="18sp" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_toggle_audio"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/btn_round_background"
|
|
android:text="🎤"
|
|
android:textSize="18sp" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_switch_camera"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_margin="4dp"
|
|
android:background="@drawable/btn_round_background"
|
|
android:text="🔄"
|
|
android:textSize="18sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
<!-- Chat Section -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="300dp"
|
|
android:orientation="vertical"
|
|
android:background="@color/chat_background">
|
|
|
|
<!-- Chat Messages -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_chat"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:padding="8dp"
|
|
android:clipToPadding="false" />
|
|
|
|
<!-- Message Input -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="8dp"
|
|
android:background="@color/input_background"
|
|
android:elevation="4dp">
|
|
|
|
<ImageButton
|
|
android:id="@+id/btn_emoji"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@drawable/btn_round_background"
|
|
android:src="@drawable/ic_emoji"
|
|
android:contentDescription="@string/emoji_button" />
|
|
|
|
<EditText
|
|
android:id="@+id/et_message"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/message_input_background"
|
|
android:hint="@string/message_hint"
|
|
android:maxLines="3"
|
|
android:padding="12dp"
|
|
android:textSize="16sp" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_send"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:layout_marginStart="8dp"
|
|
android:background="@drawable/btn_send_background"
|
|
android:text="➤"
|
|
android:textColor="@color/white"
|
|
android:textSize="18sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|