Android物联网应用程序开发(智慧园区)—— 设置传感器阈值对话框界面

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”

android:layout_width=“350dp”

android:layout_height=“wrap_content”

android:background=“@android:color/white”

android:orientation=“vertical”>

<TextView

android:id=“@+id/tvTitle”

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:background=“#257CFF”

android:gravity=“center”

android:paddingBottom=“8dp”

android:paddingTop=“8dp”

android:text=“设置阈值”

android:textColor=“@android:color/white”

android:textSize=“18sp”/>

<TextView

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“20dp”

android:layout_marginTop=“20dp”

android:text=“温度阈值设置:”

android:textColor=“#6C6C6C”/>

<LinearLayout

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:layout_marginTop=“5dp”

android:gravity=“center”

android:orientation=“horizontal”>

<LinearLayout

android:layout_width=“0dp”

android:layout_height=“wrap_content”

android:gravity=“right”

android:layout_weight=“1”>

<TextView

android:id=“@+id/tv_tempValue”

android:layout_width=“wrap_content”

android:layout_height=“match_parent”

android:text=“30”/>

<TextView

android:layout_width=“wrap_content”

android:layout_height=“match_parent”

android:text=“℃”

/>

<SeekBar

android:id=“@+id/sb_temp”

android:layout_width=“0dp”

android:layout_height=“wrap_content”

android:layout_weight=“4”

android:max=“60”

android:progress=“30”/>

<TextView

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:layout_marginLeft=“20dp”

android:layout_marginTop=“5dp”

android:text=“数值范围 0-60℃”

android:textColor=“#6C6C6C”/>

<View

android:layout_width=“match_parent”

android:layout_height=“1dp”

android:layout_marginTop=“10dp”

android:background=“#cccccc”>

<TextView

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“20dp”

android:layout_marginTop=“20dp”

android:text=“湿度阈值设置:”

android:textColor=“#6C6C6C”/>

<LinearLayout

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:layout_marginTop=“5dp”

android:gravity=“center”

android:orientation=“horizontal”>

<LinearLayout

android:layout_width=“0dp”

android:layout_height=“wrap_content”

android:gravity=“right”

android:layout_weight=“1”>

<TextView

android:id=“@+id/tv_humiValue”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:focusable=“false”

android:text=“30”/>

<TextView

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:text=“%RH”

/>

<SeekBar

android:id=“@+id/sb_humi”

android:layout_width=“0dp”

android:layout_height=“wrap_content”

android:layout_weight=“4”

android:max=“100”

android:progress=“30”/>

<TextView

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:layout_marginLeft=“20dp”

android:layout_marginTop=“5dp”

android:text=“数值范围 0-100%RH”

android:textColor=“#6C6C6C”/>

<View

android:layout_width=“match_parent”

android:layout_height=“1dp”

android:layout_marginTop=“10dp”

android:background=“#cccccc”>

<TextView

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“20dp”

android:layout_marginTop=“20dp”

android:text=“光照阈值设置:”

android:textColor=“#6C6C6C”/>

<LinearLayout

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:layout_marginTop=“5dp”

android:gravity=“center”

android:orientation=“horizontal”>

<LinearLayout

android:layout_width=“0dp”

android:layout_height=“wrap_content”

android:gravity=“right”

android:layout_weight=“1”>

<TextView

android:id=“@+id/tv_lightValue”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:focusable=“false”

android:text=“3000”/>

<TextView

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:text=“Lx”/>

<SeekBar

android:id=“@+id/sb_light”

android:layout_width=“0dp”

android:layout_height=“wrap_content”

android:layout_weight=“4”

android:max=“10000”

android:progress=“3000”/>

<TextView

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:layout_marginLeft=“20dp”

android:layout_marginTop=“5dp”

android:text=“数值范围 0-10000Lx”

android:textColor=“#6C6C6C”/>

<View

android:layout_width=“match_parent”

android:layout_height=“1dp”

android:layout_marginTop=“10dp”

android:background=“#cccccc”>

<LinearLayout

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:orientation=“horizontal”>

<Button

android:id=“@+id/btn_confirm”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_weight=“1”

android:background=“@android:color/white”

android:paddingBottom=“10dp”

android:paddingTop=“10dp”

android:text=“确定”

android:textColor=“#257CFF”/>

<View

android:layout_width=“1dp”

android:layout_height=“match_parent”

android:background=“#cccccc”>

<Button

android:id=“@+id/btn_cancel”

android:layout_width=“wrap_content”

总结:

各行各样都会淘汰一些能力差的,不仅仅是IT这个行业,所以,不要被程序猿是吃青春饭等等这类话题所吓倒,也不要觉得,找到一份工作,就享受安逸的生活,你在安逸的同时,别人正在奋力的向前跑,这样与别人的差距也就会越来越遥远,加油,希望,我们每一个人,成为更好的自己。

  • BAT大厂面试题、独家面试工具包,

  • 资料包括 数据结构、Kotlin、计算机网络、Framework源码、数据结构与算法、小程序、NDK、Flutter

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化学习资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

这类话题所吓倒,也不要觉得,找到一份工作,就享受安逸的生活,你在安逸的同时,别人正在奋力的向前跑,这样与别人的差距也就会越来越遥远,加油,希望,我们每一个人,成为更好的自己。

  • BAT大厂面试题、独家面试工具包,

  • 资料包括 数据结构、Kotlin、计算机网络、Framework源码、数据结构与算法、小程序、NDK、Flutter
    [外链图片转存中…(img-5zi1TRU6-1714437980520)]

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化学习资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

  • 8
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值