|
|
@ -1,25 +1,43 @@
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".ControlActivity">
|
|
|
|
tools:context=".ControlActivity">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1">
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TableLayout
|
|
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
android:layout_marginRight="32dp"
|
|
|
|
|
|
|
|
android:layout_marginLeft="32dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button_rotatex"
|
|
|
|
android:id="@+id/button_rotatex"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="Rotate X"
|
|
|
|
android:text="Rotate X"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button_rotatey"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button_rotatey"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button_climb"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button_climb"
|
|
|
@ -30,27 +48,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button_climb"
|
|
|
|
android:id="@+id/button_climb"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="Climb"
|
|
|
|
android:text="Climb"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button_twist"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button_twist"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/button_rotatex"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/button_rotatex"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button_rotatey"
|
|
|
|
android:id="@+id/button_rotatey"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="Rotate Y"
|
|
|
|
android:text="Rotate Y"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button_rotatez"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button_rotatez"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button_twist"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button_twist"
|
|
|
@ -59,24 +82,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button_twist"
|
|
|
|
android:id="@+id/button_twist"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginBottom="24dp"
|
|
|
|
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="Twist"
|
|
|
|
android:text="Twist"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button6"
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/button6"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/button_rotatey"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/button_rotatey"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/button_climb" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/button_climb" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TableRow
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button_rotatez"
|
|
|
|
android:id="@+id/button_rotatez"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="Rotate Z"
|
|
|
|
android:text="Rotate Z"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button6"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/button6"
|
|
|
@ -85,17 +115,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
android:id="@+id/button6"
|
|
|
|
android:id="@+id/button6"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingTop="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
android:paddingBottom="24dp"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
android:text="Button"
|
|
|
|
android:text="Button"
|
|
|
|
android:visibility="invisible"
|
|
|
|
android:visibility="invisible"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/button_rotatez"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/button_rotatez"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/button_twist" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/button_twist" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</TableLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
@ -119,3 +153,25 @@
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
|
|
android:background="@color/white"
|
|
|
|
|
|
|
|
tools:visibility="gone">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
|
|
|
|
android:id="@+id/progressBar3"
|
|
|
|
|
|
|
|
style="?android:attr/progressBarStyle"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|