Android物联网应用程序开发(智慧园区)—— 园区监控系统界面
2024-08-30 05:51:26
效果图:
布局代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_out"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="3"></LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#e0000000"
android:gravity="center_horizontal"
android:orientation="vertical">
<RelativeLayout
android:layout_width="180dp"
android:layout_height="180dp"
android:layout_marginTop="20dp"
android:background="@drawable/bg_direction">
<ImageView
android:id="@+id/ivLeft"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:src="@drawable/arrow_left_white" />
<ImageView
android:id="@+id/ivRight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:src="@drawable/arrow_right_white" />
<ImageView
android:id="@+id/ivTop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:src="@drawable/arrow_up_white" />
<ImageView
android:id="@+id/ivBottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:src="@drawable/arrow_down_white" />
</RelativeLayout>
<Button
android:id="@+id/btnOpenOrClose"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="#266fde"
android:button="@null"
android:drawableLeft="@drawable/ico_start"
android:padding="10dp"
android:text="开始监控"
android:textColor="#fff" />
<Button
android:id="@+id/btnPeople"
android:layout_width="180dp"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:background="#d64646"
android:button="@null"
android:drawableLeft="@drawable/pic_icon_smoke"
android:padding="10dp"
android:text="无人"
android:textColor="#fff" />
<CheckBox
android:id="@+id/cb_red"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginTop="20dp"
android:background="@drawable/lamp_off"
android:button="@null"
android:clickable="false" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="三色灯-红灯"
android:textColor="#fff" />
</LinearLayout>
</LinearLayout>
最新文章
- Dreamweaver 扩展开发: Calling a C++ function from JavaScript
- hadoop 日志分析
- STL使用sort注意的问题
- dup和dup2函数
- Oracle学习过程(随时更新)
- Python展开一个嵌套的序列
- Windows phone 8 学习笔记(5) 图块与通知
- How to install Savanna
- C# Task 源代码(2)
- BZOJ 1257: [CQOI2007]余数之和sum【神奇的做法,思维题】
- Jetty 开发指南: 嵌入式开发之HelloWorld
- 4. explain简介
- 《Web接口开发与自动化测试 -- 基于Python语言》---现已出版。
- javascript知识整理之this
- Ubuntu16.04下安装配置phpmyadmin
- Selenium:HTML测试报告
- python打印列表的下标和值的例子:
- 7.11python多进程
- 3. Python3 基本数据类型
- follow me