<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:background="@color/bgcolor"
|
android:orientation="vertical">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="4"
|
android:orientation="horizontal">
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_weight="1"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<Button
|
android:id="@+id/zhu001"
|
android:layout_width="200dp"
|
android:layout_height="60dp"
|
android:textSize="30dp"
|
android:layout_gravity="center"
|
android:layout_margin="5dp"
|
android:background="@color/cheng"
|
android:text="主柜"/>
|
<Button
|
android:id="@+id/gui001"
|
android:layout_width="200dp"
|
android:layout_height="60dp"
|
android:textSize="30dp"
|
android:visibility="gone"
|
android:layout_gravity="center"
|
android:layout_margin="5dp"
|
android:background="@color/DarkGray"
|
android:text="副柜1"/>
|
<Button
|
android:id="@+id/gui002"
|
android:layout_width="200dp"
|
android:layout_height="60dp"
|
android:textSize="30dp"
|
android:layout_gravity="center"
|
android:layout_margin="5dp"
|
android:visibility="gone"
|
android:background="@color/DarkGray"
|
android:text="副柜2"/>
|
<Button
|
android:id="@+id/gui003"
|
android:layout_width="200dp"
|
android:layout_height="60dp"
|
android:textSize="30dp"
|
android:layout_gravity="center"
|
android:layout_margin="5dp"
|
android:visibility="gone"
|
android:background="@color/DarkGray"
|
android:text="副柜3"/>
|
<Button
|
android:id="@+id/gui004"
|
android:layout_width="200dp"
|
android:layout_height="60dp"
|
android:textSize="30dp"
|
android:layout_gravity="center"
|
android:layout_margin="5dp"
|
android:visibility="gone"
|
android:background="@color/DarkGray"
|
android:text="副柜4"/>
|
<Button
|
android:id="@+id/gui005"
|
android:layout_width="200dp"
|
android:layout_height="60dp"
|
android:visibility="gone"
|
android:textSize="30dp"
|
android:layout_gravity="center"
|
android:layout_margin="5dp"
|
android:background="@color/DarkGray"
|
android:text="副柜5"/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="3">
|
<GridView
|
android:id="@+id/gridtable"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:verticalSpacing="10dp"
|
android:horizontalSpacing="10dp"
|
android:columnWidth="80dp"
|
android:numColumns="3">
|
</GridView>
|
</LinearLayout>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_gravity="center"
|
android:gravity="center"
|
android:layout_weight="1">
|
<Button
|
android:id="@+id/openDoorBtn"
|
android:layout_width="250dp"
|
android:layout_height="80dp"
|
android:textSize="30dp"
|
android:layout_margin="10dp"
|
android:layout_gravity="center"
|
android:background="@drawable/circular_button"
|
android:text="OPEN"/>
|
<com.liys.lswitch.LSwitch
|
android:id="@+id/lswitchjiare"
|
android:layout_margin="10dp"
|
android:layout_width="250dp"
|
android:layout_height="80dp"
|
app:text_off="加热开"
|
app:text_size_off="20dp"
|
app:text_on="加热关"
|
app:text_size_on="20dp"
|
app:track_color_on="@color/DarkGray"
|
app:track_color_off="@color/cheng"
|
app:text_show ="true"
|
app:checked="false"/>
|
<com.liys.lswitch.LSwitch
|
android:id="@+id/lswitchxiaodu"
|
android:layout_margin="10dp"
|
android:layout_width="250dp"
|
android:layout_height="80dp"
|
app:text_off="消毒开"
|
app:text_size_off="20dp"
|
app:text_on="消毒关"
|
app:text_size_on="20dp"
|
app:track_color_on="@color/DarkGray"
|
app:track_color_off="@color/cheng"
|
app:text_show ="true"
|
app:checked="false"/>
|
<com.liys.lswitch.LSwitch
|
android:id="@+id/lswitdeng"
|
android:layout_margin="10dp"
|
android:layout_width="250dp"
|
android:layout_height="80dp"
|
app:text_off="灯光开"
|
app:text_size_off="20dp"
|
app:text_on="灯光关"
|
app:text_size_on="20dp"
|
app:track_color_on="@color/DarkGray"
|
app:track_color_off="@color/cheng"
|
app:text_show ="true"
|
app:checked="false"/>
|
</LinearLayout>
|
</LinearLayout>
|