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/button_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">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/button_title"
|
|
|
|
android:layout_width="wrap_content"
|
2020-05-28 21:27:25 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:animateLayoutChanges="true"
|
2021-02-08 18:41:49 +01:00
|
|
|
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/button_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:gravity="center">
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
<ImageView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/button_icon"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
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
|
|
|
|
|
|
|
<TextView
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/button_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignStart="@id/button_icon"
|
|
|
|
android:layout_alignTop="@id/button_icon"
|
|
|
|
android:layout_alignEnd="@id/button_icon"
|
|
|
|
android:layout_alignBottom="@id/button_icon"
|
2021-10-11 17:33:48 +02:00
|
|
|
android:alpha="0.35"
|
2021-02-08 18:41:49 +01:00
|
|
|
android:fontFamily="monospace"
|
|
|
|
android:gravity="center"
|
|
|
|
android:includeFontPadding="false"
|
2021-10-11 17:33:48 +02:00
|
|
|
android:textSize="26sp"
|
|
|
|
tools:text="A" />
|
2020-05-28 21:27:25 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<SeekBar
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/button_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
|
|
|
|
|
|
|
<Button
|
2021-02-08 18:41:49 +01:00
|
|
|
android:id="@+id/button_reset"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:text="@string/reset"
|
|
|
|
android:textColor="?attr/colorAccent" />
|
2020-05-28 21:27:25 +02:00
|
|
|
</LinearLayout>
|