515 lines
20 KiB
XML
515 lines
20 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.AoleyunTestActivity">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible">
|
|
|
|
<Button
|
|
android:id="@+id/bt_usb"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="USB管控" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_usb_statu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_usb_charge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="charge" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_usb_mtp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="mtp" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_usb_midi"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="midi" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_desktop"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="默认桌面" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_desktop_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="打开" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_desktop_launcher"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="launcher" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_desktop_dop2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="dop2" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_desktop_aoleyun"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="aoleyun.os" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_sd"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="存储卡管控" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_sd_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_sd_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_sd_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="visible"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_developer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="开发者模式" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_developer_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_developer_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_developer_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible">
|
|
|
|
<Button
|
|
android:id="@+id/bt_navigation"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="导航栏" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_navigation_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_navigation_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_navigation_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible">
|
|
|
|
<Button
|
|
android:id="@+id/bt_status"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态栏" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_status_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_status_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_status_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:visibility="visible">
|
|
|
|
<Button
|
|
android:id="@+id/bt_statusbar_collapse"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态栏下拉" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_collapse_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_collapse_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_collapse_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_hotspot"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="WIFI热点" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_hotspot_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_hotspot_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_hotspot_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_bht"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="蓝牙" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_bht_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_bht_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="总开关on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_bht_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="总开关off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_bt_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="传输on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_bt_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="传输off" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_bhtvideo_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="音频on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_bhtvideo_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="音频off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_reset"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="恢复出厂" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_reset_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="状态:" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_reset_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="on" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_reset_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="off" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="输入法" />
|
|
|
|
<EditText
|
|
android:id="@+id/bt_input_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:hint="测试" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_input_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="baidu" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_input_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="sogou" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/bt_browser"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="浏览器" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_browser_statu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="打开" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_browser_on"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="夸克" />
|
|
|
|
<Button
|
|
android:id="@+id/bt_browser_off"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="Chrome" />
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |