|
@@ -0,0 +1,471 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout>
|
|
|
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/javashop_color_white">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/title_relayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp">
|
|
|
+
|
|
|
+ <!--SIP状态图标-->
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/view_title_layout_tv_point"
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:background="@color/red_color"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/name_of_organization_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@id/view_title_layout_tv_point"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="----"
|
|
|
+ android:textColor="#2F9DF1"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <TextClock
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:format12Hour="yyyy-MM-dd HH:mm EEEE"
|
|
|
+ android:format24Hour="yyyy-MM-dd HH:mm EEEE"
|
|
|
+ android:textColor="#2F9DF1"
|
|
|
+ android:textSize="22sp" />
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:gravity="center">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_device_id"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:text="ID: --"
|
|
|
+ android:textColor="#2F9DF1"
|
|
|
+ android:textSize="20sp"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/battery_state_img"
|
|
|
+ android:layout_width="28dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginRight="10dp"
|
|
|
+ android:src="@drawable/wdkl_stat_sys_battery"/>
|
|
|
+
|
|
|
+ <!-- 蓝牙状态 -->
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/bluetooth_state_imagev"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+ <!-- WiFi状态 -->
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/wifi_state_imagev"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="16dp" />
|
|
|
+
|
|
|
+ <!-- 以太网 -->
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/ethernet_state_imagev"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="16dp" />
|
|
|
+
|
|
|
+ <!-- tcp连接状态 -->
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/tcp_state_imagev"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:src="@drawable/ic_tcp_fail"/>
|
|
|
+
|
|
|
+ <!--白昼状态-->
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/day_night_state_imagev"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="16dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_above="@+id/bottom_linlyout"
|
|
|
+ android:layout_below="@+id/title_relayout">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/left_framlyout"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="0.23"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/middle_fralyout"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_toRightOf="@+id/left_framlyout"
|
|
|
+ android:layout_weight="0.77"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/right_fralyout"
|
|
|
+ android:layout_width="480dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_above="@+id/bottom_linlyout"
|
|
|
+ android:layout_below="@+id/title_relayout"
|
|
|
+ android:layout_alignParentRight="true"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/bottom_linlyout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:background="#2F9DF1"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RadioGroup
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/home_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/shou_ye_no"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_home"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/sip_call_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/guang_bo"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="呼叫"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/broadcast_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/guang_bo"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_broadcast"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/visit_an_extension_radio_bt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_broadcast_icon"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#FFFFFF"
|
|
|
+ android:text="@string/str_visiting"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/doctor_host_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/ic_doctor"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_doctor"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/inpatient_ward_radio_bt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_inpatient_ward_icon"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#FFFFFF"
|
|
|
+ android:text="@string/str_ward"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/sickbed_radio_bt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_broadcast_icon"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#FFFFFF"
|
|
|
+ android:text="@string/str_sick_bed"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/nurse_move_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_move_icon"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_mobile"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/other_host_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_other_host_icon"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_other_host"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/collocation_radio_bt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_broadcast_icon"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="#FFFFFF"
|
|
|
+ android:text="@string/str_trusteeship"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/led_settings_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_set_icon"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_led"
|
|
|
+ android:textSize="24sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <com.wdkl.ncs.android.lib.widget.CustomRadioButton
|
|
|
+ android:id="@+id/system_settings_radio_bt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:button="@null"
|
|
|
+ android:drawableLeft="@drawable/selt_set_icon"
|
|
|
+ android:drawablePadding="10px"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@drawable/selector_bottom_btn_text_color"
|
|
|
+ android:text="@string/str_settings"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="5"/>
|
|
|
+
|
|
|
+ </RadioGroup>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!--通话界面-->
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/call_frame"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent" />
|
|
|
+
|
|
|
+ <!--注册界面-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_register_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:gravity="center_horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/home_view_qr_code"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_width="280dp"
|
|
|
+ android:layout_height="280dp"
|
|
|
+ android:layout_gravity="center_horizontal" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_device_model"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="rom:"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_local_ip"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="IP:"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_local_mac"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="MAC:"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_local_imei"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="IMEI:"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_app_version"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="App version:"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_mcu_version"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="MCU:"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/home_view_device_state"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:gravity="center">
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_get_server"
|
|
|
+ android:layout_width="140dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#2F9DF1"
|
|
|
+ android:text="@string/register_auto_config"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_set_language"
|
|
|
+ android:layout_width="140dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="#2F9DF1"
|
|
|
+ android:text="@string/language_settings"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_set_server"
|
|
|
+ android:layout_width="140dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="#2F9DF1"
|
|
|
+ android:text="@string/server_config"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/home_view_btn_reload"
|
|
|
+ android:layout_width="140dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="#2F9DF1"
|
|
|
+ android:text="@string/register_reload"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_reboot"
|
|
|
+ android:layout_width="140dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:background="#2F9DF1"
|
|
|
+ android:text="@string/register_reboot"
|
|
|
+ android:textSize="20sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+</layout>
|