From d31f2155237aa65cee1cb6ce1d39c48191663226 Mon Sep 17 00:00:00 2001 From: panlili2024 <14743743+panlili2024@user.noreply.gitee.com> Date: 星期五, 21 二月 2025 18:02:41 +0800 Subject: [PATCH] 新增source屏接口及房间及绑定关系接口 --- HDLSDK/app/src/main/res/layout/activity_source_test.xml | 508 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 508 insertions(+), 0 deletions(-) diff --git a/HDLSDK/app/src/main/res/layout/activity_source_test.xml b/HDLSDK/app/src/main/res/layout/activity_source_test.xml new file mode 100644 index 0000000..4810053 --- /dev/null +++ b/HDLSDK/app/src/main/res/layout/activity_source_test.xml @@ -0,0 +1,508 @@ +<?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"> + + + <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="璁剧疆浠ュお缃戦潤鎬両P" /> + + <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> -- Gitblit v1.8.0