|
@@ -0,0 +1,165 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:gravity="center_horizontal"
|
|
|
|
+ android:background="@drawable/shape_dorm_call_item_bg"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:src="@mipmap/d_receptacle_img"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:text="客厅插座"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="36sp"
|
|
|
|
+ android:textStyle="bold"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:background="@mipmap/d_btn_bg"
|
|
|
|
+ android:drawableLeft="@mipmap/d_light_off"
|
|
|
|
+ android:drawablePadding="@dimen/d10"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d50"
|
|
|
|
+ android:text="关闭"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:background="@mipmap/d_btn_bg"
|
|
|
|
+ android:drawableLeft="@mipmap/d_timer"
|
|
|
|
+ android:drawablePadding="@dimen/d10"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d50"
|
|
|
|
+ android:text="定时"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:layout_marginLeft="20dp"
|
|
|
|
+ android:layout_marginRight="20dp"
|
|
|
|
+ android:gravity="center_horizontal"
|
|
|
|
+ android:background="@drawable/shape_dorm_call_item_bg"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:src="@mipmap/d_receptacle_img"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:text="卧室插座"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="36sp"
|
|
|
|
+ android:textStyle="bold"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:background="@mipmap/d_btn_bg"
|
|
|
|
+ android:drawableLeft="@mipmap/d_light_on"
|
|
|
|
+ android:drawablePadding="@dimen/d10"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d50"
|
|
|
|
+ android:text="开启"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:background="@mipmap/d_btn_bg"
|
|
|
|
+ android:drawableLeft="@mipmap/d_timer"
|
|
|
|
+ android:drawablePadding="@dimen/d10"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d50"
|
|
|
|
+ android:text="定时"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
+ android:gravity="center_horizontal"
|
|
|
|
+ android:background="@drawable/shape_dorm_call_item_bg"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:src="@mipmap/d_receptacle_img"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:text="房间插座"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="36sp"
|
|
|
|
+ android:textStyle="bold"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:background="@mipmap/d_btn_bg"
|
|
|
|
+ android:drawableLeft="@mipmap/d_light_on"
|
|
|
|
+ android:drawablePadding="@dimen/d10"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d50"
|
|
|
|
+ android:text="开启"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:layout_width="200dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
|
+ android:background="@mipmap/d_btn_bg"
|
|
|
|
+ android:drawableLeft="@mipmap/d_timer"
|
|
|
|
+ android:drawablePadding="@dimen/d10"
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
+ android:paddingLeft="@dimen/d50"
|
|
|
|
+ android:text="定时"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="24sp" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
+ </LinearLayout>
|
|
|
|
+</layout>
|
|
|
|
+
|
|
|
|
+
|