设备相关

This commit is contained in:
fengjignqi
2026-09-19 08:41:53 +08:00
parent f7cf112dc9
commit 981cfae71c
26 changed files with 839 additions and 72 deletions

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
android:id="@+id/statusBarView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@color/color_zhu" />
<RelativeLayout
android:id="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="48dp">
<include
android:id="@+id/included_title"
layout="@layout/include_activity_back_gray_layout" />
</RelativeLayout>
<TextView
android:id="@+id/tv_bind"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="15sp"
android:text="绑定"
android:background="@color/color_zhu"/>
</LinearLayout>

View File

@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="#FFFFFF"
android:elevation="2dp"
android:padding="14dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="end">
<ImageView
android:id="@+id/img_tips"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@mipmap/ic_launcher"
android:layout_gravity="end"/>
<ImageView
android:id="@+id/control_eye"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@mipmap/icon_login_show"
android:layout_gravity="end"/>
</LinearLayout>
<TextView
android:id="@+id/tv_device_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#222222"
android:textSize="17sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_device_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="#2E8B57"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_device_no"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textColor="#555555"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_device_imei"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="#777777"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_device_detail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="#777777"
android:textSize="13sp" />
<TextView
android:id="@+id/tv_device_location"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textColor="#777777"
android:textSize="13sp" />
</LinearLayout>

View File

@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/page_background">
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@color/page_background"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_title"
android:layout_width="match_parent"
@@ -12,10 +15,39 @@
layout="@layout/include_title_home_layout" />
</RelativeLayout>
<TextView
android:id="@+id/tv_index"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/home_page_title"
android:textColor="@color/black"
android:textSize="24sp" />
</FrameLayout>
<com.scwang.smart.refresh.layout.SmartRefreshLayout
android:id="@+id/refresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- 设备列表区域 -->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_devices"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingHorizontal="15dp"
tools:itemCount="5"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<RelativeLayout
android:id="@+id/rel_no_more"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" >
<include
android:id="@+id/lay_no_more"
layout="@layout/layout_no_more"/>
</RelativeLayout>
</LinearLayout>
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
</LinearLayout>

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_no_more"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
tools:visibility="visible">
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="@color/color_zhu" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="1dp"
android:text="@string/no_more_data"
android:textColor="@color/color_zhu"
android:textSize="12sp" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="@color/color_zhu" />
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
</LinearLayout>

View File

@@ -0,0 +1,11 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="80dp"
android:gravity="center"
android:background="@color/transparent">
<ImageView
android:id="@+id/ivRefresh"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@mipmap/icon_water_head_refresh" />
</RelativeLayout>

View File

@@ -7,11 +7,13 @@
<item
android:id="@+id/navigation_plan"
android:icon="@drawable/ic_nav_plan"
android:title="@string/tab_plan" />
android:title="@string/tab_plan"
android:visible="false"/>
<item
android:id="@+id/navigation_history"
android:icon="@drawable/ic_nav_history"
android:title="@string/tab_history" />
android:title="@string/tab_history"
android:visible="false"/>
<item
android:id="@+id/navigation_mine"
android:icon="@drawable/ic_nav_mine"

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@@ -7,6 +7,7 @@
<string name="login_password">密码</string>
<string name="login_button">登录</string>
<string name="login_register">手机注册</string>
<string name="bind_device">绑定设备</string>
<string name="register_account_hint">请输入账号</string>
<string name="register_password_hint">请输入密码</string>
<string name="register_show_password">显示密码</string>
@@ -18,6 +19,7 @@
<string name="register_prompt">没有账号?立即注册</string>
<string name="register_get_code">获取验证码</string>
<string name="register_code_countdown">%1$d秒后重新获取</string>
<string name="no_more_data">已经到底了</string>
@@ -63,6 +65,8 @@
<string name="tab_history">历史</string>
<string name="tab_mine">我的</string>
<string name="home_page_title">首页</string>
<string name="device_action_rename">重命名</string>
<string name="device_action_unbind">解绑设备</string>
<string name="plan_page_title">计划</string>
<string name="history_page_title">历史</string>
<string name="mine_page_title">我的</string>