first draft of manual_drive layout

This commit is contained in:
root 2018-06-15 19:17:51 +02:00
parent fae1884b7c
commit 78145f1cba
2 changed files with 191 additions and 17 deletions

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="47.65295dp"
android:height="15.538606dp"
android:viewportWidth="47.65295"
android:viewportHeight="15.538606">
<group
android:translateX="-50.428954"
android:translateY="-154.38768">
<path
android:strokeColor="#000000"
android:strokeWidth="1"
android:strokeLineCap="round"
android:pathData="M 97.765593,154.69195 v 14.93006 m -14.197441,-7.46503 c 14.209481,0 14.209481,0 14.209481,0 m -46.926664,-7.46502 h 32.559754 c 0.0676,0 0.122015,0.0544 0.122015,0.12201 V 169.5 c 0,0.0676 -0.05442,0.12201 -0.122015,0.12201 H 50.850969 c -0.0676,0 -0.122015,-0.0544 -0.122015,-0.12201 v -14.68603 c 0,-0.0676 0.05442,-0.12201 0.122015,-0.12201 z" />
</group>
</vector>

View File

@ -239,4 +239,195 @@
android:layout_height="wrap_content"
app:barrierDirection="top" />
<Button
android:id="@+id/sp1_control_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="40dp"
android:text="Aktivieren"
app:layout_constraintEnd_toEndOf="@+id/pu1_control_button"
app:layout_constraintHorizontal_bias="0.68"
app:layout_constraintStart_toStartOf="@+id/pu1_control_button"
app:layout_constraintTop_toBottomOf="@+id/pu1_control_button" />
<ImageView
android:id="@+id/sp1_status_light_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/sp1_control_button"
app:layout_constraintTop_toTopOf="@+id/sp1_control_button"
app:srcCompat="@android:drawable/presence_invisible" />
<ImageView
android:id="@+id/sp1_status_light_on"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/sp1_control_button"
app:layout_constraintTop_toTopOf="@+id/sp1_control_button"
app:srcCompat="@android:drawable/presence_online" />
<TextView
android:id="@+id/sp1_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="SP1"
app:layout_constraintBottom_toTopOf="@+id/sp1_control_button"
app:layout_constraintEnd_toEndOf="@+id/sp1_control_button"
app:layout_constraintHorizontal_bias="0.476"
app:layout_constraintStart_toStartOf="@+id/sp1_control_button" />
<Button
android:id="@+id/b1_control_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="40dp"
android:text="Aktivieren"
app:layout_constraintEnd_toEndOf="@+id/pu2_control_button"
app:layout_constraintHorizontal_bias="0.68"
app:layout_constraintStart_toStartOf="@+id/pu2_control_button"
app:layout_constraintTop_toBottomOf="@+id/pu2_control_button" />
<ImageView
android:id="@+id/b1_status_light_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/b1_control_button"
app:layout_constraintTop_toTopOf="@+id/b1_control_button"
app:srcCompat="@android:drawable/presence_invisible" />
<ImageView
android:id="@+id/b1_status_light_on"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/b1_control_button"
app:layout_constraintTop_toTopOf="@+id/b1_control_button"
app:srcCompat="@android:drawable/presence_online" />
<TextView
android:id="@+id/b1_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="B1"
app:layout_constraintBottom_toTopOf="@+id/b1_control_button"
app:layout_constraintEnd_toEndOf="@+id/b1_control_button"
app:layout_constraintHorizontal_bias="0.476"
app:layout_constraintStart_toStartOf="@+id/b1_control_button" />
<ToggleButton
android:id="@+id/m1_control_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="40dp"
android:text="Aktivieren"
android:textOff="Start"
android:textOn="Stopp"
app:layout_constraintEnd_toEndOf="@+id/sp1_control_button"
app:layout_constraintHorizontal_bias="0.68"
app:layout_constraintStart_toStartOf="@+id/sp1_control_button"
app:layout_constraintTop_toBottomOf="@+id/sp1_control_button" />
<ImageView
android:id="@+id/m1_status_light_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/m1_control_button"
app:layout_constraintTop_toTopOf="@+id/m1_control_button"
app:srcCompat="@android:drawable/presence_invisible" />
<ImageView
android:id="@+id/m1_status_light_on"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/m1_control_button"
app:layout_constraintTop_toTopOf="@+id/m1_control_button"
app:srcCompat="@android:drawable/presence_online" />
<TextView
android:id="@+id/m1_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="M1"
app:layout_constraintBottom_toTopOf="@+id/m1_control_button"
app:layout_constraintEnd_toEndOf="@+id/m1_control_button"
app:layout_constraintHorizontal_bias="0.476"
app:layout_constraintStart_toStartOf="@+id/m1_control_button" />
<ToggleButton
android:id="@+id/m2_control_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="40dp"
android:text="Aktivieren"
android:textOff="Start"
android:textOn="Stopp"
app:layout_constraintEnd_toEndOf="@+id/b1_control_button"
app:layout_constraintHorizontal_bias="0.68"
app:layout_constraintStart_toStartOf="@+id/b1_control_button"
app:layout_constraintTop_toBottomOf="@+id/b1_control_button" />
<ImageView
android:id="@+id/m2_status_light_off"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/m2_control_button"
app:layout_constraintTop_toTopOf="@+id/m2_control_button"
app:srcCompat="@android:drawable/presence_invisible" />
<ImageView
android:id="@+id/m2_status_light_on"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:visibility="invisible"
app:layout_constraintStart_toEndOf="@+id/m2_control_button"
app:layout_constraintTop_toTopOf="@+id/m2_control_button"
app:srcCompat="@android:drawable/presence_online" />
<TextView
android:id="@+id/m2_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="M2"
app:layout_constraintBottom_toTopOf="@+id/m2_control_button"
app:layout_constraintEnd_toEndOf="@+id/m2_control_button"
app:layout_constraintHorizontal_bias="0.476"
app:layout_constraintStart_toStartOf="@+id/m2_control_button" />
</android.support.constraint.ConstraintLayout>