105 lines
3.6 KiB
XML
105 lines
3.6 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"
|
||
|
|
tools:context=".activity.MainActivity">
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button5"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="156dp"
|
||
|
|
android:text="连接手柄"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/button2" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button6"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="224dp"
|
||
|
|
android:text="断开手柄"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/button2" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button7"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="46dp"
|
||
|
|
android:text="获取电量"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button8"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="68dp"
|
||
|
|
android:text="获取个数"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button9"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="136dp"
|
||
|
|
android:text="定时计数"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button10"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="204dp"
|
||
|
|
android:text="停止跳绳"
|
||
|
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button"
|
||
|
|
android:layout_width="121dp"
|
||
|
|
android:layout_height="47dp"
|
||
|
|
android:text="连接主机"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toTopOf="parent" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button2"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="24dp"
|
||
|
|
android:text="打开配对模式"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/button" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button3"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="20dp"
|
||
|
|
android:text="关闭配对模式"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/button2" />
|
||
|
|
|
||
|
|
<Button
|
||
|
|
android:id="@+id/button4"
|
||
|
|
android:layout_width="141dp"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:layout_marginTop="88dp"
|
||
|
|
android:text="配对手柄"
|
||
|
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@+id/button2" />
|
||
|
|
|
||
|
|
<EditText
|
||
|
|
android:id="@+id/edittext"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="10dp"
|
||
|
|
app:layout_constraintRight_toRightOf="parent"
|
||
|
|
app:layout_constraintTop_toBottomOf="@id/button6" />
|
||
|
|
|
||
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|