diff --git a/app/src/main/java/com/example/user/myapp/DisplayMessageActivity.java b/app/src/main/java/com/example/user/myapp/DisplayMessageActivity.java index d5e78bb..1312bbf 100644 --- a/app/src/main/java/com/example/user/myapp/DisplayMessageActivity.java +++ b/app/src/main/java/com/example/user/myapp/DisplayMessageActivity.java @@ -150,10 +150,10 @@ public class DisplayMessageActivity extends AppCompatActivity { TextView textView10 = findViewById(R.id.textView10); textView10.setText(new Boolean(booleanArray[0]).toString()); - TextView textView11 = findViewById(R.id.textView11); + TextView textView11 = findViewById(R.id.h2_textview); textView11.setText(new Boolean(booleanArray[1]).toString()); - TextView textView12 = findViewById(R.id.textView12); + TextView textView12 = findViewById(R.id.h1_textview); textView12.setText(new Boolean(booleanArray[2]).toString()); TextView textView13 = findViewById(R.id.textView13); diff --git a/app/src/main/res/layout/activity_display_message.xml b/app/src/main/res/layout/activity_display_message.xml index 83b8397..d8cd9da 100644 --- a/app/src/main/res/layout/activity_display_message.xml +++ b/app/src/main/res/layout/activity_display_message.xml @@ -124,17 +124,17 @@ app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toBottomOf="@+id/h1_textview" /> + app:layout_constraintStart_toEndOf="@+id/h2_textview" /> diff --git a/app/src/main/res/layout/activity_manual_drive.xml b/app/src/main/res/layout/activity_manual_drive.xml index 04ab4b0..91d4194 100644 --- a/app/src/main/res/layout/activity_manual_drive.xml +++ b/app/src/main/res/layout/activity_manual_drive.xml @@ -6,20 +6,9 @@ android:layout_height="match_parent" tools:context=".ManualDriveActivity"> - + app:layout_constraintTop_toBottomOf="@+id/manual_override_textview" /> + app:layout_constraintBottom_toTopOf="@+id/h2_control_button" + app:layout_constraintEnd_toEndOf="@+id/h2_control_button" + app:layout_constraintStart_toStartOf="@+id/h2_control_button" /> + app:layout_constraintBottom_toTopOf="@+id/h1_control_button" + app:layout_constraintEnd_toEndOf="@+id/h1_control_button" + app:layout_constraintStart_toStartOf="@+id/h1_control_button" /> + app:layout_constraintTop_toBottomOf="@+id/manual_override_button" /> + app:layout_constraintStart_toEndOf="@+id/h1_control_button" + app:layout_constraintTop_toBottomOf="@+id/manual_override_button" /> + + + + + + + + + + + + + + + + + +