122 lines
4.6 KiB
XML
122 lines
4.6 KiB
XML
<?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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:gravity="center"
|
|
android:padding="16dp"
|
|
android:background="#F5F5F5">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Animal Rating"
|
|
android:textSize="32sp"
|
|
android:textStyle="bold"
|
|
android:textColor="#333333"
|
|
android:layout_marginBottom="32dp"/>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="4dp"
|
|
app:contentPadding="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Settings"
|
|
android:textStyle="bold"
|
|
android:layout_marginBottom="8dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginBottom="8dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Algorithm:"
|
|
android:layout_marginEnd="8dp"/>
|
|
|
|
<Spinner
|
|
android:id="@+id/spinnerAlgorithm"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginBottom="16dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Threshold: "/>
|
|
|
|
<TextView
|
|
android:id="@+id/tvThresholdValue"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="75%"/>
|
|
</LinearLayout>
|
|
|
|
<SeekBar
|
|
android:id="@+id/seekBarThreshold"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:max="100"
|
|
android:progress="75"/>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Start New Rating"
|
|
android:textSize="18sp"
|
|
android:textColor="#666666"
|
|
android:layout_marginBottom="16dp"/>
|
|
|
|
<Button
|
|
android:id="@+id/btnSelectCow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Select Cow"
|
|
android:textSize="16sp"
|
|
android:padding="12dp"
|
|
android:backgroundTint="#FF5722"
|
|
android:textColor="#FFFFFF"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<Button
|
|
android:id="@+id/btnViewGallery"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="View Collected Images"
|
|
android:textSize="16sp"
|
|
android:padding="12dp"
|
|
android:backgroundTint="#2196F3"
|
|
android:textColor="#FFFFFF"/>
|
|
|
|
</LinearLayout> |