mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 17:35:54 +08:00
完成Android端开发
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
@@ -10,43 +20,47 @@
|
||||
android:id="@+id/device_item_card_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
app:cardBackgroundColor="@color/xui_config_color_white"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
app:cardBackgroundColor="@color/cardview_light_background"
|
||||
app:cardCornerRadius="5dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="true">
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/device_item_fl_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_marginRight="5dp">
|
||||
android:layout_marginRight="5dp"
|
||||
android:background="#C9F3DA">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/device_item_title_icon"
|
||||
android:layout_width="@dimen/config_margin_24dp"
|
||||
android:layout_height="@dimen/config_margin_24dp"
|
||||
android:id="@+id/update_device_temp_icon"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:tint="@color/toast_normal_tint_color"
|
||||
app:srcCompat="@drawable/water_valve" />
|
||||
android:layout_marginTop="2dp"
|
||||
android:tint="@color/white"
|
||||
app:srcCompat="@drawable/title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="30dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:paddingTop="3dp"
|
||||
android:singleLine="true"
|
||||
android:text="雷达感应灯08"
|
||||
android:text="智能报警灯"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="14sp" />
|
||||
|
||||
@@ -56,41 +70,43 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginTop="32dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="bottom|start|left"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="5dp">
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="8dp">
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="12dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/device_item_time_icon"
|
||||
android:layout_width="@dimen/config_margin_12dp"
|
||||
android:layout_height="@dimen/config_margin_12dp"
|
||||
android:id="@+id/device_item_category_icon"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="bottom"
|
||||
app:srcCompat="@drawable/time_b" />
|
||||
android:tint="@color/primary"
|
||||
app:srcCompat="@drawable/category" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_time"
|
||||
android:id="@+id/device_item_category"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/config_margin_14dp"
|
||||
android:layout_marginStart="@dimen/config_margin_16dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="08:45"
|
||||
android:text="智能灯"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="10sp" />
|
||||
android:textSize="12sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
@@ -98,90 +114,100 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="8dp">
|
||||
android:layout_marginBottom="12dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="@dimen/config_margin_12dp"
|
||||
android:layout_height="@dimen/config_margin_12dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:tint="@color/danger"
|
||||
app:srcCompat="@drawable/temperature" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_temperature"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/config_margin_14dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="15℃"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="@dimen/config_margin_12dp"
|
||||
android:layout_height="@dimen/config_margin_12dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="45dp"
|
||||
android:tint="@color/danger"
|
||||
app:srcCompat="@drawable/humidity" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_humidity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="58dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="60%"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="10sp" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginLeft="5dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/device_item_wifi_icon"
|
||||
android:layout_width="@dimen/config_margin_12dp"
|
||||
android:layout_height="@dimen/config_margin_12dp"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="bottom"
|
||||
app:srcCompat="@drawable/wifi" />
|
||||
app:srcCompat="@drawable/wifi_2" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_wifi"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/config_margin_14dp"
|
||||
android:layout_marginStart="@dimen/config_margin_16dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="在线"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="10sp" />
|
||||
android:textSize="12sp" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/device_item_state_icon"
|
||||
android:layout_width="@dimen/config_margin_12dp"
|
||||
android:layout_height="@dimen/config_margin_12dp"
|
||||
android:id="@+id/device_item_temp_icon"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="45dp"
|
||||
app:srcCompat="@drawable/state_b" />
|
||||
android:layout_marginStart="48dp"
|
||||
android:tint="@color/success"
|
||||
app:srcCompat="@drawable/temperature" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_state"
|
||||
android:id="@+id/device_item_temp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="58dp"
|
||||
android:layout_marginStart="62dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="打开"
|
||||
android:text="23℃"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="10sp" />
|
||||
android:textSize="12sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginBottom="15dp">
|
||||
|
||||
<com.xuexiang.xui.widget.button.SwitchIconView
|
||||
android:id="@+id/device_item_radar_icon"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="bottom"
|
||||
app:siv_disabled_color="@color/info"
|
||||
app:siv_no_dash="true"
|
||||
app:siv_tint_color="@color/danger"
|
||||
app:srcCompat="@drawable/radar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_radar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/config_margin_16dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="雷达"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.SwitchIconView
|
||||
android:id="@+id/device_item_alarm_icon"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginStart="48dp"
|
||||
app:siv_disabled_color="@color/info"
|
||||
app:siv_no_dash="true"
|
||||
app:siv_tint_color="@color/danger"
|
||||
app:srcCompat="@drawable/alarm" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/device_item_alarm"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="62dp"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:text="报警"
|
||||
android:textColor="@color/xui_config_color_pure_black"
|
||||
android:textSize="12sp" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
@@ -189,19 +215,45 @@
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="bottom|right">
|
||||
|
||||
<com.xuexiang.xui.widget.button.SwitchIconView
|
||||
android:id="@+id/device_item_switch_button"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:padding="8dp"
|
||||
app:siv_animation_duration="500"
|
||||
app:siv_disabled_alpha=".5"
|
||||
app:siv_disabled_color="@color/info"
|
||||
app:siv_enabled="false"
|
||||
app:siv_no_dash="true"
|
||||
app:siv_tint_color="@color/toast_error_color"
|
||||
app:srcCompat="@drawable/power" />
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.xuexiang.xui.widget.button.SwitchIconView
|
||||
android:id="@+id/device_item_light_button"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="53dp"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:paddingTop="@dimen/config_padding_12dp"
|
||||
android:paddingEnd="5dp"
|
||||
android:paddingBottom="@dimen/config_padding_12dp"
|
||||
app:siv_animation_duration="500"
|
||||
app:siv_disabled_alpha=".5"
|
||||
app:siv_disabled_color="@color/info"
|
||||
app:siv_enabled="false"
|
||||
app:siv_no_dash="true"
|
||||
app:siv_tint_color="@color/danger"
|
||||
app:srcCompat="@drawable/light_on" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.SwitchIconView
|
||||
android:id="@+id/device_item_switch_button"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="53dp"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:paddingTop="@dimen/config_padding_16dp"
|
||||
android:paddingEnd="5dp"
|
||||
android:paddingBottom="@dimen/config_padding_16dp"
|
||||
app:siv_animation_duration="500"
|
||||
app:siv_disabled_alpha=".5"
|
||||
app:siv_disabled_color="@color/info"
|
||||
app:siv_enabled="false"
|
||||
app:siv_no_dash="true"
|
||||
app:siv_tint_color="@color/danger"
|
||||
app:srcCompat="@drawable/switch_c" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -81,11 +81,13 @@
|
||||
android:id="@+id/cb_ignore"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:button="@drawable/icon_checkbox" />
|
||||
android:button="@drawable/icon_checkbox"
|
||||
android:scaleX="0.8"
|
||||
android:scaleY="0.8" />
|
||||
|
||||
<TextView
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_marginStart="@dimen/config_margin_8dp"
|
||||
android:layout_marginStart="@dimen/config_margin_4dp"
|
||||
android:text="@string/tip_ignore_message" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -1,26 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
|
||||
<LinearLayout 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"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout style="@style/PullDownStyle">
|
||||
<com.xuexiang.xui.widget.actionbar.TitleBar
|
||||
android:id="@+id/titlebar_min"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-25dp"
|
||||
app:tb_actionPadding="0dp"
|
||||
app:tb_barHeight="56dp"
|
||||
app:tb_sideTextPadding="20dp"
|
||||
app:tb_titleText="关于" />
|
||||
|
||||
|
||||
<androidx.core.widget.NestedScrollView style="@style/ScrollViewStyle">
|
||||
|
||||
@@ -33,9 +39,9 @@
|
||||
android:paddingBottom="25dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="187dp"
|
||||
android:layout_height="57dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:contentDescription="Logo"
|
||||
app:srcCompat="@drawable/logo" />
|
||||
|
||||
@@ -47,6 +53,15 @@
|
||||
android:textColor="@color/xui_config_color_gray_3"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_autho"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:textColor="@color/xui_config_color_gray_3"
|
||||
android:textSize="12sp"
|
||||
tools:text="Author:kerwinci Site:www.wumei.live" />
|
||||
|
||||
<com.xuexiang.xui.widget.grouplist.XUIGroupListView
|
||||
android:id="@+id/about_list"
|
||||
android:layout_width="match_parent"
|
||||
@@ -63,12 +78,12 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginBottom="150dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="@color/xui_config_color_gray_7" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
|
||||
</LinearLayout>
|
||||
194
android/app/src/main/res/layout/fragment_account.xml
Normal file
194
android/app/src/main/res/layout/fragment_account.xml
Normal file
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.xuexiang.xui.widget.actionbar.TitleBar
|
||||
android:id="@+id/titlebar_min"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-25dp"
|
||||
app:tb_actionPadding="0dp"
|
||||
app:tb_barHeight="56dp"
|
||||
app:tb_sideTextPadding="20dp"
|
||||
app:tb_titleText="账户信息" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:foregroundGravity="center_horizontal"
|
||||
app:srcCompat="@drawable/user" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="0dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="用户名称:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_user_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="admin" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="用户昵称:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_nick_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="物美智能" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="电子邮箱:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_email"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="164770707@qq.com" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="电话号码:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_phone_num"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="15888888888" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="创建时间:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_create_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="127.0.0.1" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="备注信息:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_remark"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="2021-08-08" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_confirm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginBottom="100dp"
|
||||
android:text="确定"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/colorAccent" />
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
@@ -1,29 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
|
||||
<LinearLayout 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"
|
||||
android:background="@color/xui_config_color_white"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<androidx.core.widget.NestedScrollView style="@style/ScrollViewStyle">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:orientation="vertical">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:animationCache="false"
|
||||
android:background="#FFFFFF">
|
||||
|
||||
<com.xuexiang.xui.widget.progress.CircleProgressView
|
||||
android:id="@+id/progressView_circle_main"
|
||||
android:layout_width="220dp"
|
||||
android:layout_height="220dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginBottom="0dp"
|
||||
app:cpv_animate_type="AccelerateDecelerateInterpolator"
|
||||
app:cpv_circle_broken="false"
|
||||
app:cpv_end_color="#80006DFE"
|
||||
app:cpv_end_progress="100"
|
||||
app:cpv_isFilled="false"
|
||||
app:cpv_isGraduated="false"
|
||||
app:cpv_isTracked="true"
|
||||
app:cpv_progress_duration="3000"
|
||||
app:cpv_progress_textColor="#0D006DFE"
|
||||
app:cpv_progress_textSize="48sp"
|
||||
app:cpv_progress_textVisibility="false"
|
||||
app:cpv_progress_width="16dp"
|
||||
app:cpv_scaleZone_width="3dp"
|
||||
app:cpv_start_color="@color/cardview_light_background"
|
||||
app:cpv_start_progress="0"
|
||||
app:cpv_track_color="#FAFAFF"
|
||||
app:cpv_track_width="26dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/progress_text_main"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="48sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="%"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="32sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/add_device_title"
|
||||
style="@style/TextStyle.Title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:text="WIFI网络设置"
|
||||
android:textSize="24sp" />
|
||||
android:id="@+id/txt_config_message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:gravity="center_horizontal|top"
|
||||
android:text="消息提示"
|
||||
android:textColor="@color/danger" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -43,6 +112,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="?attr/xui_config_content_spacing_vertical"
|
||||
android:enabled="false"
|
||||
android:text="请选择WIFI网络" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -85,7 +155,8 @@
|
||||
android:layout_height="42dp"
|
||||
android:gravity="center_vertical"
|
||||
android:inputType="textMultiLine"
|
||||
android:text="目前仅支持2.4GHz的WIFI网络"
|
||||
android:text="提示:目前仅支持2.4GHz的WIFI网络"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<RadioButton
|
||||
@@ -97,7 +168,6 @@
|
||||
android:text="记住密码"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<FrameLayout
|
||||
@@ -128,7 +198,35 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
android:visibility="gone">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_device_num_label"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="42dp"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="设备数量:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_device_count"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="115dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/colorAccent"
|
||||
app:xsb_insideRangeLineStrokeWidth="5dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_max="32"
|
||||
app:xsb_min="1"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/packageModeGroup"
|
||||
@@ -152,21 +250,48 @@
|
||||
android:layout_marginStart="16dp"
|
||||
android:text="@string/esptouch1_package_multicast" />
|
||||
</RadioGroup>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/messageView"
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="top"
|
||||
android:textColor="@android:color/holo_red_dark" />
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/add_device_next_btn"
|
||||
style="@style/SuperButton.Primary.Login"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="下一步" />
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_return"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:text="返回"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_5" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_config_cancle"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="90dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:enabled="false"
|
||||
android:text="取消"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_2" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_begin"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="180dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:layout_marginBottom="100dp"
|
||||
android:text="开始配网"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/colorAccent" />
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,4 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
|
||||
41
android/app/src/main/res/layout/fragment_device_detail.xml
Normal file
41
android/app/src/main/res/layout/fragment_device_detail.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.xuexiang.xui.widget.actionbar.TitleBar
|
||||
android:id="@+id/titlebar_min"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-25dp"
|
||||
app:tb_actionPadding="0dp"
|
||||
app:tb_barHeight="56dp"
|
||||
app:tb_sideTextPadding="20dp"
|
||||
app:tb_titleText="设备详情" />
|
||||
|
||||
<com.xuexiang.xui.widget.tabbar.TabSegment
|
||||
android:id="@+id/tabSegment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:background="@color/xui_config_color_white" />
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/contentViewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fitsSystemWindows="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
224
android/app/src/main/res/layout/fragment_device_edit.xml
Normal file
224
android/app/src/main/res/layout/fragment_device_edit.xml
Normal file
@@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<ScrollView 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"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="@dimen/config_margin_10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingEnd="@dimen/config_padding_20dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="名称:" />
|
||||
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_device_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="60dp"
|
||||
android:hint="请输入设备名称"
|
||||
android:inputType="text"
|
||||
app:met_clearButton="false"
|
||||
app:met_errorMessage="名称有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="设备名称" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="备注:" />
|
||||
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_device_remark"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="60dp"
|
||||
android:hint="请输入备注"
|
||||
android:inputType="textMultiLine|textImeMultiLine"
|
||||
app:met_clearButton="false"
|
||||
app:met_errorMessage="备注有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="备注" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="设备编号:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_device_num"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="7CDFA1049ADA" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="设备分类:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_device_category"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="智能灯" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="固件版本:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_firmware_version"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="v1.0" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="创建时间:" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_create_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="2021-06-08" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="设备温度:" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/sp_device_temperature"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="23.78℃"
|
||||
app:sCornersRadius="10dp"
|
||||
app:sSolidColor="@color/app_color_theme_5" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/update_device_temp_icon"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:layout_marginStart="150dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:tint="@color/app_color_theme_5"
|
||||
app:srcCompat="@drawable/update"
|
||||
tools:visibility="visible" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_cancle_edit"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:text="取消"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_2" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_save"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="110dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginBottom="100dp"
|
||||
android:text="保存"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/colorAccent" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
337
android/app/src/main/res/layout/fragment_device_set.xml
Normal file
337
android/app/src/main/res/layout/fragment_device_set.xml
Normal file
@@ -0,0 +1,337 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<ScrollView 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"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="@dimen/config_margin_10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingEnd="5dp"
|
||||
android:paddingRight="5dp">
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="雷达感应:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_radar"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="70dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="关开" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="160dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="报警:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_alarm"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="200dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="关开" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="雷达感应间隔/s:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_radar_interval"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="90dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/app_color_theme_5"
|
||||
app:xsb_insideRangeLineStrokeWidth="5dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_isShowRuler="false"
|
||||
app:xsb_max="60"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="15sp"
|
||||
app:xsb_outsideRangeLineColor="#f0f0f0"
|
||||
app:xsb_outsideRangeLineStrokeWidth="5dp"
|
||||
app:xsb_rulerColor="@color/xui_config_color_gray_4" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:id="@+id/divider2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="射频遥控:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_rf_control"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="按键一:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_rf_func_one"
|
||||
style="@style/SpinnerStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView9"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="按键二:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_rf_func_two"
|
||||
style="@style/SpinnerStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView10"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="按键三:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_rf_func_three"
|
||||
style="@style/SpinnerStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView11"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="按键四:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_rf_func_four"
|
||||
style="@style/SpinnerStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp" />
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/divider1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView13"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="以下是特殊功能,建议独立使用"
|
||||
android:textColor="@color/danger" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="遥控配对:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_rf_learn"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="70dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView7"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="160dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="遥控清码:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_rf_clear"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="230dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView14"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="打开AP:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_open_ap"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="70dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView12"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="160dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="重 启:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_reset"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="230dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_cancle_set"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:text="取消"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_2" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_apply_set"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="110dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginBottom="100dp"
|
||||
android:text="应用"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/colorAccent" />
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
389
android/app/src/main/res/layout/fragment_device_status.xml
Normal file
389
android/app/src/main/res/layout/fragment_device_status.xml
Normal file
@@ -0,0 +1,389 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<ScrollView 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"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
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:layout_margin="@dimen/config_margin_10dp"
|
||||
android:layout_marginBottom="0dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingLeft="@dimen/config_padding_5dp"
|
||||
android:paddingEnd="@dimen/config_padding_5dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="继电器:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_relay"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="60dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="150dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="灯状态:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_light"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="210dp"
|
||||
app:swb_textOff="关"
|
||||
app:swb_textOn="开" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="彩灯模式:" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/spinner_light_mode"
|
||||
style="@style/SpinnerStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="渐变间隔/ms:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_fade_interval"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/app_color_theme_5"
|
||||
app:xsb_insideRangeLineStrokeWidth="5dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_max="1500"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="渐变时间/ms:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_fade_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="80dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/app_color_theme_5"
|
||||
app:xsb_insideRangeLineStrokeWidth="5dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_max="1500"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp" />
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingLeft="@dimen/config_padding_5dp"
|
||||
android:paddingEnd="@dimen/config_padding_5dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView9"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="亮 度:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_brightness"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/app_color_theme_5"
|
||||
app:xsb_insideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_isShowRuler="false"
|
||||
app:xsb_max="100"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp"
|
||||
app:xsb_outsideRangeLineColor="#f0f0f0"
|
||||
app:xsb_outsideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_rulerColor="@color/xui_config_color_gray_4" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="红 色:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_red"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/danger"
|
||||
app:xsb_insideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_isShowRuler="false"
|
||||
app:xsb_max="255"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp"
|
||||
app:xsb_outsideRangeLineColor="#f0f0f0"
|
||||
app:xsb_outsideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_rulerColor="@color/xui_config_color_gray_4" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView7"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="绿 色:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_green"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/success"
|
||||
app:xsb_insideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_isShowRuler="false"
|
||||
app:xsb_max="255"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp"
|
||||
app:xsb_outsideRangeLineColor="#f0f0f0"
|
||||
app:xsb_outsideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_rulerColor="@color/xui_config_color_gray_4" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="31dp"
|
||||
android:text="蓝 色:" />
|
||||
|
||||
<com.xuexiang.xui.widget.picker.XSeekBar
|
||||
android:id="@+id/xsb_blue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="0dp"
|
||||
app:xsb_insideRangeLineColor="@color/colorAccent"
|
||||
app:xsb_insideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_isShowBubble="true"
|
||||
app:xsb_isShowRuler="false"
|
||||
app:xsb_max="255"
|
||||
app:xsb_min="0"
|
||||
app:xsb_numberTextColor="#ffffff"
|
||||
app:xsb_numberTextSize="12sp"
|
||||
app:xsb_outsideRangeLineColor="#f0f0f0"
|
||||
app:xsb_outsideRangeLineStrokeWidth="10dp"
|
||||
app:xsb_rulerColor="@color/xui_config_color_gray_4" />
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/config_margin_10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingLeft="@dimen/config_padding_5dp"
|
||||
android:paddingEnd="@dimen/config_padding_5dp">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/frame_layout_loading_status"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/update_device_temp_icon"
|
||||
android:layout_width="@dimen/config_margin_14dp"
|
||||
android:layout_height="@dimen/config_margin_14dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:tint="@color/app_color_theme_5"
|
||||
app:srcCompat="@drawable/update" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView15"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="20dp"
|
||||
android:text="单击获取最新温湿度"
|
||||
android:textColor="@color/app_color_theme_5"
|
||||
android:textSize="10sp" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView10"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="温度:" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/sp_temperature"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="23.78℃"
|
||||
app:sCornersRadius="10dp"
|
||||
app:sSolidColor="@color/app_color_theme_5" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView11"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="150dp"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="湿度:" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/sp_humidity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="190dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="39.68RH%"
|
||||
app:sCornersRadius="10dp"
|
||||
app:sSolidColor="@color/app_color_theme_5" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_cancle_status"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:text="取消"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_2" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_apply_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="110dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginBottom="100dp"
|
||||
android:text="应用"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/colorAccent" />
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
@@ -1,5 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
53
android/app/src/main/res/layout/fragment_home_page.xml
Normal file
53
android/app/src/main/res/layout/fragment_home_page.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
-->
|
||||
|
||||
<LinearLayout 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"
|
||||
android:background="@color/xui_config_color_white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/refreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:srlEnableAutoLoadMore="true"
|
||||
app:srlEnableLoadMore="true">
|
||||
|
||||
|
||||
|
||||
<com.scwang.smartrefresh.header.MaterialHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<WebView
|
||||
android:id="@+id/webview_home"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"/>
|
||||
|
||||
<!-- 注意修改包名时,这里也需要修改 -->
|
||||
<com.kerwin.wumei.widget.MaterialFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,19 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
-->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
@@ -24,8 +10,8 @@
|
||||
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="181dp"
|
||||
android:layout_height="130dp"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
app:srcCompat="@drawable/logo" />
|
||||
|
||||
@@ -61,22 +47,17 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="36dp"
|
||||
android:hint="@string/tip_please_input_phone_number"
|
||||
android:inputType="number"
|
||||
android:hint="请输入账号"
|
||||
android:inputType="text"
|
||||
app:met_clearButton="true"
|
||||
app:met_errorMessage="@string/tip_phone_number_error"
|
||||
app:met_errorMessage="账号有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="@string/title_phone_number"
|
||||
app:met_regexp="@string/regex_phone_number" />
|
||||
|
||||
app:met_floatingLabelText="登录账号" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_verify_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -86,21 +67,19 @@
|
||||
app:srcCompat="@drawable/ic_password" />
|
||||
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_verify_code"
|
||||
android:id="@+id/et_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="36dp"
|
||||
android:hint="@string/hint_please_input_verify_code"
|
||||
android:inputType="number"
|
||||
android:hint="请输入密码"
|
||||
android:inputType="textPassword"
|
||||
app:met_clearButton="false"
|
||||
app:met_errorMessage="@string/tip_verify_code_error"
|
||||
app:met_errorMessage="密码有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="@string/lab_verify_code"
|
||||
app:met_maxCharacters="4"
|
||||
app:met_regexp="@string/regex_verify_code" />
|
||||
app:met_floatingLabelText="密码" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.roundbutton.RoundButton
|
||||
android:id="@+id/btn_get_verify_code"
|
||||
android:id="@+id/btn_clear"
|
||||
style="@style/RoundButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -109,7 +88,7 @@
|
||||
android:paddingTop="3dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:paddingBottom="3dp"
|
||||
android:text="@string/action_get_verify_code"
|
||||
android:text="清除"
|
||||
android:textColor="@color/selector_round_button_main_theme_color"
|
||||
android:textSize="13sp"
|
||||
app:rb_borderColor="@color/selector_round_button_main_theme_color"
|
||||
@@ -118,44 +97,41 @@
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_verify_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<com.xuexiang.xui.widget.alpha.XUIAlphaTextView
|
||||
android:id="@+id/tv_other_login"
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_gravity="start"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:text="其他登录方式"
|
||||
android:textColor="@color/xui_config_color_primary_text"
|
||||
tools:visibility="invisible" />
|
||||
<ImageView
|
||||
android:id="@+id/iv_code"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:background="#E3E0E0" />
|
||||
|
||||
<com.xuexiang.xui.widget.alpha.XUIAlphaTextView
|
||||
android:id="@+id/tv_forget_password"
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_gravity="end"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingEnd="10dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:text="忘记密码"
|
||||
android:textColor="@color/xui_config_color_primary_text"
|
||||
tools:visibility="invisible" />
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_verify_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="110dp"
|
||||
android:hint="请输入验证码"
|
||||
android:inputType="number"
|
||||
app:met_clearButton="false"
|
||||
app:met_errorMessage="验证码有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="验证码" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_login"
|
||||
style="@style/SuperButton.Primary.Login"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/title_login_register" />
|
||||
android:text="登录" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -172,29 +148,9 @@
|
||||
<TextView
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="登陆/注册代表您已阅读并同意"
|
||||
android:text="物美智能(wumei-smart) - 快速搭建自己的智能家居系统"
|
||||
android:textColor="@color/xui_config_color_primary_text" />
|
||||
|
||||
<com.xuexiang.xui.widget.alpha.XUIAlphaTextView
|
||||
android:id="@+id/tv_user_protocol"
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="用户协议"
|
||||
android:textColor="?attr/colorAccent" />
|
||||
|
||||
<TextView
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="和"
|
||||
android:textColor="@color/xui_config_color_primary_text" />
|
||||
|
||||
<com.xuexiang.xui.widget.alpha.XUIAlphaTextView
|
||||
android:id="@+id/tv_privacy_protocol"
|
||||
style="@style/TextStyle.Explain"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="隐私政策"
|
||||
android:textColor="?attr/colorAccent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -1,14 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- app:tb_leftImageResource="@drawable/icon_back_white"-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.xuexiang.xui.widget.actionbar.TitleBar
|
||||
android:id="@+id/titlebar_min"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-25dp"
|
||||
app:tb_actionPadding="0dp"
|
||||
app:tb_barHeight="56dp"
|
||||
app:tb_sideTextPadding="20dp"
|
||||
app:tb_titleText="消息" />
|
||||
|
||||
<TextView
|
||||
style="@style/TextStyle.Title"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:text="@string/menu_message" />
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="暂无消息" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,32 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
-->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout style="@style/PullDownStyle">
|
||||
|
||||
<androidx.core.widget.NestedScrollView style="@style/ScrollViewStyle">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="20dp">
|
||||
|
||||
@@ -47,6 +41,7 @@
|
||||
</com.xuexiang.xui.widget.textview.supertextview.SuperTextView>
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
android:id="@+id/menu_account"
|
||||
style="@style/InfoItem.Account"
|
||||
app:sLeftTextString="账号" />
|
||||
|
||||
@@ -55,31 +50,36 @@
|
||||
style="@style/InfoItem.Account"
|
||||
app:sLeftTextString="消息" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
style="@style/InfoItem.Account"
|
||||
app:sDividerLineType="none"
|
||||
app:sLeftTextString="收藏" />
|
||||
|
||||
<com.xuexiang.xui.widget.grouplist.XUIGroupListView
|
||||
android:id="@+id/about_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="0dp" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
android:id="@+id/menu_feedback"
|
||||
style="@style/InfoItem.Account"
|
||||
android:layout_marginTop="20dp"
|
||||
app:sLeftTextString="意见反馈" />
|
||||
android:id="@+id/menu_logout"
|
||||
style="@style/InfoItem"
|
||||
android:layout_marginTop="16dp"
|
||||
app:sCenterTextColor="@color/xui_config_color_red"
|
||||
app:sCenterTextString="退出登录"
|
||||
app:sDividerLineType="none" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
android:id="@+id/menu_settings"
|
||||
style="@style/InfoItem.Account"
|
||||
app:sLeftTextString="设置" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperTextView
|
||||
android:id="@+id/menu_about"
|
||||
style="@style/InfoItem.Account"
|
||||
app:sDividerLineType="none"
|
||||
app:sLeftTextString="关于" />
|
||||
<TextView
|
||||
android:id="@+id/tv_copyright"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginBottom="150dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="@color/xui_config_color_gray_7" />
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,35 +1,235 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<ScrollView 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"
|
||||
android:background="@color/xui_config_color_white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/refreshLayout"
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:srlEnableAutoLoadMore="true"
|
||||
app:srlEnableLoadMore="true">
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.scwang.smartrefresh.header.MaterialHeader
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/config_margin_10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingEnd="@dimen/config_padding_20dp">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recyclerView"
|
||||
<TextView
|
||||
android:id="@+id/textView16"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="服务端配置"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="地址/域名:" />
|
||||
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_serve"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginTop="38dp"
|
||||
android:hint="请输入服务端地址,例如:192.168.0.100"
|
||||
android:inputType="text"
|
||||
app:met_clearButton="true"
|
||||
app:met_errorMessage="输入的服务地址有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="服务端地址" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="端口:" />
|
||||
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_port"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginTop="38dp"
|
||||
android:hint="请输入端口号,例如:80"
|
||||
android:inputType="number"
|
||||
app:met_clearButton="true"
|
||||
app:met_errorMessage="输入的端口有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="服务端口" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="使用HTTPS:" />
|
||||
|
||||
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
||||
android:id="@+id/sb_https"
|
||||
style="@style/SwitchButtonStyle"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="90dp"
|
||||
app:swb_textOff="否"
|
||||
app:swb_textOn="是" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:text="端口:"
|
||||
android:visibility="invisible" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp">
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_connect_test"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="连接测试"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_2" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_save_serve"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginStart="110dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="保存"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/colorAccent" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
tools:listitem="@layout/adapter_news_card_view_list_item" />
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:background="@color/cardview_light_background"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/config_padding_20dp"
|
||||
android:paddingEnd="@dimen/config_padding_20dp">
|
||||
|
||||
<!-- 注意修改包名时,这里也需要修改 -->
|
||||
<com.kerwin.wumei.widget.MaterialFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:id="@+id/textView17"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:text="AP配置"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
|
||||
<View
|
||||
android:id="@+id/divider4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView18"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="需要设备支持并启动AP,手机连接设备wifi热点"
|
||||
android:textColor="@color/danger"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="60dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/config_margin_18dp"
|
||||
android:text="设备AP地址:" />
|
||||
|
||||
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
||||
android:id="@+id/et_ap_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:layout_marginStart="0dp"
|
||||
android:layout_marginTop="38dp"
|
||||
android:layout_marginEnd="130dp"
|
||||
android:inputType="text"
|
||||
app:met_clearButton="true"
|
||||
app:met_errorMessage="输入有误"
|
||||
app:met_floatingLabel="normal"
|
||||
app:met_floatingLabelText="设备地址"
|
||||
tools:text="192.168.4.1" />
|
||||
|
||||
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
||||
android:id="@+id/btn_open_ap"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_gravity="right"
|
||||
android:layout_marginTop="42dp"
|
||||
android:text="打开"
|
||||
app:sCornersRadius="5dp"
|
||||
app:sSolidColor="@color/app_color_theme_5" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
@@ -1,5 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- *************************************************
|
||||
* 作者:kerwincui
|
||||
* 时间:2021-06-08
|
||||
* 邮箱:164770707@qq.com
|
||||
* 源码地址:https://gitee.com/kerwincui/wumei-smart
|
||||
* author: kerwincui
|
||||
* create: 2021-06-08
|
||||
* email:164770707@qq.com
|
||||
* source:https://github.com/kerwincui/wumei-smart
|
||||
************************************************** -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
@@ -29,20 +29,6 @@
|
||||
android:scrollbarSize="4dp"
|
||||
tools:listitem="@layout/adapter_device_card_view_list_item" />
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tv_title"-->
|
||||
<!-- style="@style/TextStyle.Title"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- tools:text="这里是xx页面" />-->
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tv_explain"-->
|
||||
<!-- style="@style/TextStyle.Explain"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="20dp"-->
|
||||
<!-- tools:text="这里是xx页面描述" />-->
|
||||
|
||||
<!-- 注意修改包名时,这里也需要修改 -->
|
||||
<com.kerwin.wumei.widget.MaterialFooter
|
||||
|
||||
Reference in New Issue
Block a user