tetris-3d/android-app/app/src/main/res/layout/dialog_options.xml

119 lines
No EOL
3.9 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="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/options"
android:textAlignment="center"
android:textColor="@color/cyan"
android:textSize="24sp"
android:textStyle="bold"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/enable_3d_effects"
android:textColor="@color/white"
android:textSize="16sp" />
<Switch
android:id="@+id/switch3dEffects"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/enable_spin_animations"
android:textColor="@color/white"
android:textSize="16sp" />
<Switch
android:id="@+id/switchSpinAnimations"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/animation_speed"
android:textColor="@color/white"
android:textSize="16sp"
android:layout_marginBottom="8dp" />
<SeekBar
android:id="@+id/seekBarAnimationSpeed"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="100"
android:progress="50"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/starting_level"
android:textColor="@color/white"
android:textSize="16sp" />
<NumberPicker
android:id="@+id/numberPickerLevel"
android:layout_width="wrap_content"
android:layout_height="100dp"
android:theme="@style/NumberPickerTheme" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="end">
<Button
android:id="@+id/btnCloseOptions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/close"
android:layout_marginEnd="8dp" />
<Button
android:id="@+id/btnApplyOptions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/apply" />
</LinearLayout>
</LinearLayout>