<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:id="@+id/activity_ctrl"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<!--<include-->
|
<!-- android:id="@+id/hdl_top_bar_layout"-->
|
<!-- layout="@layout/hdl_toolbar_top_view_b" />-->
|
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="20dp"
|
android:layout_marginTop="20dp"
|
android:orientation="vertical">
|
|
<TextView
|
android:id="@+id/sensorText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="这个按钮做传感器演示" />
|
|
<Button
|
android:id="@+id/sensorbtn"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="获取传感器状态" />
|
</LinearLayout>
|
|
</RelativeLayout>
|