<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
tools:context=".MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TrustformeRS Android Example"
android:textSize="24sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="16dp" />
<EditText
android:id="@+id/inputText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter text to classify..."
android:inputType="textMultiLine"
android:minLines="3"
android:gravity="top"
android:padding="12dp"
android:background="@android:drawable/edit_text"
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/classifyButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Classify"
android:enabled="false"
android:layout_marginEnd="8dp" />
<Button
android:id="@+id/deviceInfoButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Device Info"
android:layout_marginStart="8dp" />
</LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone"
android:layout_marginBottom="16dp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/resultText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Results will appear here..."
android:textSize="16sp"
android:padding="12dp"
android:background="#F0F0F0"
android:layout_marginBottom="16dp" />
<TextView
android:id="@+id/performanceText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Performance stats will appear here..."
android:textSize="14sp"
android:fontFamily="monospace"
android:padding="12dp"
android:background="#E8E8E8" />
</LinearLayout>
</ScrollView>
</LinearLayout>