From 81d297dd33911dbfdc93dbc3fa9747e511b7ce8e Mon Sep 17 00:00:00 2001 From: panlili2024 <14743743+panlili2024@user.noreply.gitee.com> Date: 星期五, 08 十一月 2024 14:51:10 +0800 Subject: [PATCH] 优化透传数据解析 --- app/src/main/res/layout/activity_ctrl_light.xml | 35 +++++++++++++++++++++++++++-------- 1 files changed, 27 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/activity_ctrl_light.xml b/app/src/main/res/layout/activity_ctrl_light.xml index 41f3336..07c48cf 100644 --- a/app/src/main/res/layout/activity_ctrl_light.xml +++ b/app/src/main/res/layout/activity_ctrl_light.xml @@ -8,37 +8,56 @@ <include android:id="@+id/hdl_top_bar_layout" - layout="@layout/hdl_toolbar_top_view_b"/> + layout="@layout/hdl_toolbar_top_view_b" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginRight="20dp" - android:layout_marginLeft="20dp" android:layout_below="@+id/hdl_top_bar_layout" + android:layout_marginLeft="20dp" + android:layout_marginRight="20dp" android:orientation="vertical"> + <TextView android:layout_width="match_parent" android:layout_height="40dp" - android:text="鐏厜绫绘ā鍧�" android:gravity="center|left" - android:textSize="@dimen/ts_24" + android:text="鐏厜绫绘ā鍧�" android:textColor="@color/black" - /> + android:textSize="@dimen/ts_24" /> <TextView android:id="@+id/lightText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" - android:textSize="@dimen/ts_20" - android:text="杩欎釜鎸夐挳鍋氱伅鍏夌殑婕旂ず" /> + android:text="杩欎釜鎸夐挳鍋氱伅鍏夌殑婕旂ず" + android:textSize="@dimen/ts_20" /> <Button android:id="@+id/ctrlbtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="鍏崇伅" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <Button + android:id="@+id/ctrl_brightness" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="璁剧疆浜害锛�" /> + + <EditText + android:id="@+id/et_brightness" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:inputType="number" /> + </LinearLayout> </LinearLayout> </RelativeLayout> \ No newline at end of file -- Gitblit v1.8.0