<?xml version="1.0" encoding="utf-8"?>
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
|
|
<RelativeLayout
|
android:id="@+id/toolbar"
|
android:layout_width="match_parent"
|
android:layout_height="44dp"
|
android:background="@color/white">
|
|
<RelativeLayout
|
android:id="@+id/rl_back"
|
android:layout_width="47dp"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:layout_width="10dp"
|
android:layout_height="17dp"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="16dp"
|
android:src="@mipmap/activity_back" />
|
</RelativeLayout>
|
</RelativeLayout>
|
|
<TextView
|
android:id="@+id/tv_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:padding="10dp" />
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_api_version"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="当前API版本" />
|
|
<Button
|
android:id="@+id/btn_device_model"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="设备model" />
|
|
<Button
|
android:id="@+id/btn_os_version"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="android系统版本" />
|
|
<Button
|
android:id="@+id/btn_running_memory"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="运行内存" />
|
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_inner_storage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="内部存储空间" />
|
|
<Button
|
android:id="@+id/btn_free_storage"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="内部存储可用容量" />
|
|
<Button
|
android:id="@+id/btn_kernel_version"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="获取当前Kernel版本" />
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_builder_number"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="获取设备的固件系统版本和编译日期" />
|
|
<Button
|
android:id="@+id/btn_fwversion"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="获取系统版本" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_shut_down"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="关机" />
|
|
<Button
|
android:id="@+id/btn_reboot"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="重启" />
|
|
<Button
|
android:id="@+id/btn_system_configinfo"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="获取系统配置信息" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/edit_brightness"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="取值0~255"
|
android:inputType="number" />
|
|
|
<Button
|
android:id="@+id/btn_brightness"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设置屏幕亮度" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/edit_rotation"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="输入方向 0、90、180、270 "
|
android:inputType="number" />
|
|
<Button
|
android:id="@+id/btn_rotation"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设置屏幕方向" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
|
<Button
|
android:id="@+id/btn_notifyLight_open"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="呼吸灯" />
|
|
<Button
|
android:id="@+id/btn_notifyLight_close"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="关闭呼吸灯" />
|
|
<Button
|
android:id="@+id/btn_open_back_light"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="打开背光" />
|
|
<Button
|
android:id="@+id/btn_close_back_light"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="关闭背光" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_statusBar_show"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="状态栏显示" />
|
|
<Button
|
android:id="@+id/btn_statusBar_hide"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="状态栏隐藏" />
|
|
<Button
|
android:id="@+id/btn_mic_enable"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:text="获取麦克风状态" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_eth_mac_address"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="以太网 mac地址" />
|
|
<Button
|
android:id="@+id/btn_eth_ip_address"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="以太网 ip地址" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_sdcard"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="sdcard 路径" />
|
|
<Button
|
android:id="@+id/btn_inner"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="内部存储 路径" />
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_install"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="静默安装" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_ethernet_connect"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="以太网连接状态" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="ip地址:" />
|
|
<EditText
|
android:id="@+id/edit_ip_address"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:hint="192.168.0.123" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="网关:" />
|
|
<EditText
|
android:id="@+id/edit_gateway"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:hint="192.168.0.1" />
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="netmask:" />
|
|
<EditText
|
android:id="@+id/edit_netmask"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:hint="255.255.225.0" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="dns1:" />
|
|
<EditText
|
android:id="@+id/edit_dns1"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:hint="192.168.0.1" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="dns2:" />
|
|
<EditText
|
android:id="@+id/edit_dns2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:hint="0.0.0.0" />
|
</LinearLayout>
|
|
<Button
|
android:id="@+id/btn_submit_static_ip"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设置以太网静态IP" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_netmask"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="子网掩码" />
|
|
<Button
|
android:id="@+id/btn_gateway"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="网关" />
|
|
<Button
|
android:id="@+id/btn_dns"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="DNS" />
|
|
<Button
|
android:id="@+id/btn_disconnect_eth"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="断开以太网" />
|
|
<Button
|
android:id="@+id/btn_connect_eth"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="连接以太网" />
|
|
<Button
|
android:id="@+id/btn_switch_dhcp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="切换DHCP" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_sleep"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text="休眠" />
|
|
<Button
|
android:id="@+id/btn_wake_up"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="唤醒" />
|
|
<Button
|
android:id="@+id/btn_filter_permission"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_weight="1"
|
android:text="过滤权限" />
|
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_ota"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="ota升级" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|