<?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:gravity="center"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="20dp"
|
android:layout_marginRight="10dp"
|
android:text="individual_addr:" />
|
|
<EditText
|
android:layout_width="90dp"
|
android:layout_height="wrap_content"
|
android:hint="1101"
|
android:text="1101" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:orientation="horizontal" >
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="40dp"
|
android:layout_marginRight="40dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:layout_marginBottom="5dp"
|
android:text="Channel 1:" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal" >
|
|
<Button
|
android:id="@+id/light1_1"
|
android:layout_width="90dp"
|
android:layout_height="90dp"
|
android:layout_marginBottom="10dp"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:background="@drawable/light_def" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="120dp"
|
android:layout_weight="1"
|
android:layout_marginTop="5dp"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Switch:" />
|
|
<EditText
|
android:id="@+id/edit_obj1_1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/1"
|
android:text="1/0/1" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Status:" />
|
|
<EditText
|
android:id="@+id/edit_obj1_2"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/2"
|
android:text="1/0/2" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center" >
|
|
<Button
|
android:id="@+id/switch_btn1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Save" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="40dp"
|
android:layout_marginRight="40dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:layout_marginBottom="5dp"
|
android:text="Channel 2:" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal" >
|
|
<Button
|
android:id="@+id/light_2"
|
android:layout_width="90dp"
|
android:layout_height="90dp"
|
android:layout_marginBottom="10dp"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:background="@drawable/light_def" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="120dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Switch:" />
|
|
<EditText
|
android:id="@+id/edit_obj2_1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/1"
|
android:text="1/0/3" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Status:" />
|
|
<EditText
|
android:id="@+id/edit_obj2_2"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/2"
|
android:text="1/0/4" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center" >
|
|
<Button
|
android:id="@+id/switch_btn2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Save" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="40dp"
|
android:layout_marginRight="40dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="5dp"
|
android:layout_marginBottom="5dp"
|
android:text="Channel 3:" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal" >
|
|
<Button
|
android:id="@+id/light_3"
|
android:layout_width="90dp"
|
android:layout_height="90dp"
|
android:layout_marginBottom="10dp"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:background="@drawable/light_def" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="120dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Switch:" />
|
|
<EditText
|
android:id="@+id/edit_obj3_1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/1"
|
android:text="1/0/5" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Status:" />
|
|
<EditText
|
android:id="@+id/edit_obj3_2"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/2"
|
android:text="1/0/6" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center" >
|
|
<Button
|
android:id="@+id/switch_btn3"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Save" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="40dp"
|
android:layout_marginRight="40dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="5dp"
|
android:layout_marginTop="5dp"
|
android:text="Channel 4:" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_marginTop="5dp"
|
android:orientation="horizontal" >
|
|
<Button
|
android:id="@+id/light_4"
|
android:layout_width="90dp"
|
android:layout_height="90dp"
|
android:layout_marginBottom="10dp"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:background="@drawable/light_def" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="120dp"
|
android:layout_weight="1"
|
android:orientation="vertical" >
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Switch:" />
|
|
<EditText
|
android:id="@+id/edit_obj4_1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/1"
|
android:text="1/0/7" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1" >
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Status:" />
|
|
<EditText
|
android:id="@+id/edit_obj4_2"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:hint="1/0/2"
|
android:text="1/0/8" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center" >
|
|
<Button
|
android:id="@+id/switch_btn4"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="Save" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
|
</LinearLayout>
|