mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-01 11:42:18 +01:00
142 lines
5.7 KiB
XML
142 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<TextView
|
|
android:id="@+id/battery_percentage_label"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_weight="1"
|
|
android:foregroundGravity="center_horizontal"
|
|
android:gravity="center_horizontal"
|
|
android:text=""
|
|
android:textSize="48sp" />
|
|
|
|
<nodomain.freeyourgadget.gadgetbridge.devices.supercars.JoystickView
|
|
android:id="@+id/joystickLeft"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="300dp"
|
|
android:layout_weight="1" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<CheckBox
|
|
android:id="@+id/turboMode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:height="48dp"
|
|
android:text="@string/supercars_turbo_speed_label"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/lightsOn"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:height="48dp"
|
|
android:text="@string/supercars_lights_label"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/lightsBlinking"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:height="48dp"
|
|
android:text="@string/supercars_lights_blinking_label"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/trick1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="1dp"
|
|
android:layout_marginStart="1dp"
|
|
android:layout_marginLeft="1dp"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginEnd="1dp"
|
|
android:layout_marginRight="1dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:layout_weight="1"
|
|
android:background="@color/accent"
|
|
android:minHeight="64dp"
|
|
app:srcCompat="@drawable/ic_arrow_circle_left" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/trick2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="1dp"
|
|
android:layout_marginStart="1dp"
|
|
android:layout_marginLeft="1dp"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginEnd="1dp"
|
|
android:layout_marginRight="1dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:layout_weight="1"
|
|
android:background="@color/accent"
|
|
android:minHeight="64dp"
|
|
app:srcCompat="@drawable/ic_arrow_circle_right" />
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/trick3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="1dp"
|
|
android:layout_marginStart="1dp"
|
|
android:layout_marginLeft="1dp"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginEnd="1dp"
|
|
android:layout_marginRight="1dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:layout_weight="1"
|
|
android:background="@color/accent"
|
|
android:minHeight="64dp"
|
|
app:srcCompat="@drawable/ic_u_turn_left" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/trick4"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="1dp"
|
|
android:layout_marginStart="1dp"
|
|
android:layout_marginLeft="1dp"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginEnd="1dp"
|
|
android:layout_marginRight="1dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:layout_weight="1"
|
|
android:background="@color/accent"
|
|
android:minHeight="64dp"
|
|
app:srcCompat="@drawable/ic_u_turn_right" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |