Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".SettingsActivity">
- <TextView
- android:id="@+id/textView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Settings"
- android:textAlignment="center"
- android:textColor="#FF0000"
- android:textSize="36sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvRange"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Range"
- android:textAlignment="textStart"
- android:textColor="#FF00FF"
- android:textSize="28sp"
- android:textStyle="bold" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="6dp"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tvMin"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- android:text="min = 5"
- android:textSize="20sp" />
- <SeekBar
- android:id="@+id/skbMin"
- style="@style/Widget.AppCompat.SeekBar.Discrete"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:max="15"
- android:min="5"
- android:progress="3" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="6dp"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tvMax"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="6dp"
- android:text="max = 7"
- android:textSize="20sp" />
- <SeekBar
- android:id="@+id/skbMax"
- style="@style/Widget.AppCompat.SeekBar.Discrete"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:max="15"
- android:min="5"
- android:progress="10" />
- </LinearLayout>
- <TextView
- android:id="@+id/tvOperators"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Operators"
- android:textAlignment="textStart"
- android:textColor="#FF00FF"
- android:textSize="28sp"
- android:textStyle="bold" />
- <CheckBox
- android:id="@+id/chkAdd"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Addition (+)"
- android:textSize="20sp" />
- <CheckBox
- android:id="@+id/chkSub"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Substraction (-)"
- android:textSize="20sp" />
- <CheckBox
- android:id="@+id/chkMul"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Multiplication (x)"
- android:textSize="20sp" />
- <CheckBox
- android:id="@+id/chkDiv"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Division (/)"
- android:textSize="20sp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="6dp"
- android:layout_weight="1"
- android:onClick="saveSettingsCLicked"
- android:text="Save" />
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="6dp"
- android:layout_weight="1"
- android:onClick="cancelClicked"
- android:text="Cancel"></Button>
- </LinearLayout>
- </LinearLayout>
Add Comment
Please, Sign In to add comment