2020-05-28 21:27:25 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-02-08 18:41:49 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2021-10-11 17:33:48 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:defaultFocusHighlightEnabled="false"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:focusedByDefault="true"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="16dp">
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:text="@string/stick_button"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="16sp" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_subtitle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:text="@string/use_button_axis"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
|
|
|
|
android:textSize="16sp" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<RelativeLayout
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_circle_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:gravity="center">
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<ImageView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_circle_icon"
|
|
|
|
android:layout_width="80dp"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:contentDescription="@string/buttons"
|
|
|
|
android:outlineProvider="bounds"
|
|
|
|
android:src="@drawable/ic_button"
|
|
|
|
app:tint="?android:attr/textColorPrimary" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignStart="@id/stick_circle_icon"
|
|
|
|
android:layout_alignTop="@id/stick_circle_icon"
|
|
|
|
android:layout_alignEnd="@id/stick_circle_icon"
|
|
|
|
android:layout_alignBottom="@id/stick_circle_icon">
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<ImageView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_icon"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_margin="15dp"
|
|
|
|
android:contentDescription="@string/buttons"
|
|
|
|
android:outlineProvider="bounds"
|
|
|
|
android:src="@drawable/ic_stick"
|
|
|
|
app:tint="?android:attr/textColorPrimary" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignStart="@id/stick_icon"
|
|
|
|
android:layout_alignTop="@id/stick_icon"
|
|
|
|
android:layout_alignEnd="@id/stick_icon"
|
|
|
|
android:layout_alignBottom="@id/stick_icon"
|
2021-10-11 17:33:48 +02:00
|
|
|
android:alpha="0.6"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:gravity="center"
|
|
|
|
android:includeFontPadding="false"
|
2022-07-30 13:22:01 +02:00
|
|
|
android:textAlignment="center"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:textColor="@android:color/white"
|
2021-10-11 17:33:48 +02:00
|
|
|
android:textSize="26sp"
|
|
|
|
tools:text="R" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<SeekBar
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_seekbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:max="100"
|
|
|
|
android:progress="25"
|
|
|
|
android:secondaryProgressTintMode="screen"
|
|
|
|
android:visibility="gone" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2021-02-08 18:41:49 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end">
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<Button
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_reset"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textColor="?attr/colorAccent" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<Button
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/stick_next"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/next"
|
|
|
|
android:textColor="?attr/colorAccent" />
|
2020-05-28 21:27:25 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|