<?xml version="1.0" encoding="utf-8"?>
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:orientation="vertical"
|
android:layout_height="wrap_content">
|
|
<Button
|
android:id="@+id/bt_register_acc"
|
android:layout_width="match_parent"
|
android:text="注册acc监听"
|
android:layout_height="wrap_content"/>
|
|
<Button
|
android:id="@+id/bt_get_acc"
|
android:layout_width="match_parent"
|
android:text="获取acc值"
|
android:layout_height="wrap_content"/>
|
|
<Button
|
android:id="@+id/bt_register_power_down"
|
android:layout_width="match_parent"
|
android:text="注册掉电监听"
|
android:layout_height="wrap_content"/>
|
|
<Button
|
android:id="@+id/bt_get_power_down"
|
android:layout_width="match_parent"
|
android:text="获取掉电值"
|
android:layout_height="wrap_content"/>
|
|
|
<Button
|
android:id="@+id/bt_get_pulse"
|
android:layout_width="match_parent"
|
android:text="获取脉冲值"
|
android:layout_height="wrap_content"/>
|
|
<TextView
|
android:id="@+id/tv_pilse_count"
|
android:layout_marginTop="100dp"
|
android:textSize="20sp"
|
android:gravity="center"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
</ScrollView>
|