<?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:padding="16dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="{{PROJECT_NAME_PASCAL}} DataStream Client"
android:textSize="24sp"
android:textStyle="bold"
android:layout_marginBottom="8dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Actor-RTC Kotlin DataStream Client"
android:textSize="14sp"
android:textColor="#666666"
android:layout_marginBottom="16dp" />
<TextView
android:id="@+id/statusText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Status: Disconnected"
android:textSize="16sp"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="16dp">
<Button
android:id="@+id/connectButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Connect"
android:layout_marginEnd="8dp" />
<Button
android:id="@+id/disconnectButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Disconnect"
android:enabled="false" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/clientIdInput"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="Client ID (optional)"
android:inputType="text"
android:enabled="false"
android:layout_marginEnd="8dp" />
<EditText
android:id="@+id/messageCountInput"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:hint="Count"
android:text="3"
android:inputType="number"
android:enabled="false" />
</LinearLayout>
<Button
android:id="@+id/startStreamButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Start Stream Transfer"
android:enabled="false"
android:layout_marginBottom="16dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Logs:"
android:textSize="14sp"
android:textStyle="bold" />
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="#F5F5F5"
android:padding="8dp">
<TextView
android:id="@+id/logText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="monospace"
android:textSize="12sp" />
</ScrollView>
</LinearLayout>