<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:id="@+id/fragment_setting"
|
>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_alignParentStart="true"
|
android:layout_alignParentTop="true"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:orientation="horizontal">
|
|
<Space
|
android:layout_width="1dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h57"
|
android:text="报警声音持续时间配置"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h26"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:gravity="right"
|
android:text="持续时间:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<com.basic.security.widget.CustomSpinner
|
android:id="@+id/second"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h32"
|
android:background="@drawable/spinner_arrow_down"
|
android:dropDownVerticalOffset="0dp"
|
android:dropDownSelector="@color/transparent"
|
android:paddingTop="2dp"
|
android:paddingBottom="2dp"
|
android:spinnerMode="dropdown" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginLeft="@dimen/w6"
|
android:text="秒"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="服务器配置"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="标题:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/title"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="IP:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/ip"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="端口:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/port"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="声音配置"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:gravity="right"
|
android:text="声音:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<com.basic.security.widget.CustomSpinner
|
android:id="@+id/alarmAudio"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h32"
|
android:background="@drawable/spinner_arrow_down"
|
android:dropDownVerticalOffset="0dp"
|
android:dropDownSelector="@color/transparent"
|
android:paddingTop="2dp"
|
android:paddingBottom="2dp"
|
android:spinnerMode="dropdown" />
|
</LinearLayout>
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="保留报警数据"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:gravity="right"
|
android:text="时间:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<com.basic.security.widget.CustomSpinner
|
android:id="@+id/keepTime"
|
android:layout_width="@dimen/w90"
|
android:layout_height="@dimen/h32"
|
android:background="@drawable/spinner_arrow_down"
|
android:dropDownVerticalOffset="0dp"
|
android:dropDownSelector="@color/transparent"
|
android:paddingTop="2dp"
|
android:paddingBottom="2dp"
|
android:spinnerMode="dropdown" />
|
|
<com.basic.security.widget.CustomSpinner
|
android:id="@+id/keepTimeType"
|
android:layout_width="@dimen/w90"
|
android:layout_height="@dimen/h32"
|
android:layout_marginLeft="@dimen/w6"
|
android:background="@drawable/spinner_arrow_down"
|
android:dropDownVerticalOffset="0dp"
|
android:dropDownSelector="@color/transparent"
|
android:paddingTop="2dp"
|
android:paddingBottom="2dp"
|
android:spinnerMode="dropdown" />
|
</LinearLayout>
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="修改密码"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="旧密码:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/oldPassword"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:inputType="textPassword"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="新密码:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/newPassword"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:inputType="textPassword"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="确认密码:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/newPassword2"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:inputType="textPassword"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="授权"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15"
|
android:visibility="gone" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="密码:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/password"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:inputType="textPassword"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@color/black"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="确认密码:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/confirmNewPassword"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<Space
|
android:layout_width="1dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h57"
|
android:text="本机IP设置"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<CheckBox
|
android:id="@+id/switch_ethernet"
|
style="@style/setting_checkbox"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h26"
|
android:layout_marginRight="@dimen/w46"
|
android:text="以太网开关"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<RadioGroup
|
android:id="@+id/ip_mode"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content">
|
|
<RadioButton
|
android:id="@+id/dhcp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w108"
|
android:layout_marginTop="@dimen/h24"
|
android:button="@drawable/radiobutton"
|
android:text="DHCP自动获取地址"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<RadioButton
|
android:id="@+id/staticip"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w108"
|
android:layout_marginTop="@dimen/h24"
|
android:button="@drawable/radiobutton"
|
android:text="手动设置如下地址"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
</RadioGroup>
|
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="IP地址:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/ip_address"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@drawable/bg_edittext1_color"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="子网掩码:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/net_mask"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@drawable/bg_edittext1_color"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="网关地址:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/gate_way"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@drawable/bg_edittext1_color"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="域名服务器:"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<EditText
|
android:id="@+id/dns_server"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"
|
android:textColor="@drawable/bg_edittext1_color"
|
android:textCursorDrawable="@null"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
|
|
<Space
|
android:layout_width="1dp"
|
android:layout_height="0dp"
|
android:layout_weight="1" />
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginBottom="@dimen/h266">
|
|
<Button
|
android:id="@+id/goto_home"
|
android:layout_width="@dimen/w65"
|
android:layout_height="@dimen/h40"
|
android:layout_gravity="center"
|
android:background="@drawable/white_button"
|
android:text="返回"
|
android:textColor="#222"
|
android:textSize="@dimen/h13" />
|
|
<Button
|
android:id="@+id/save"
|
android:layout_width="@dimen/w65"
|
android:layout_height="@dimen/h40"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w28"
|
android:background="@drawable/blue_button"
|
android:text="保存"
|
android:textColor="@color/white"
|
android:textSize="@dimen/h13" />
|
|
<Button
|
android:id="@+id/exit"
|
android:layout_width="@dimen/w65"
|
android:layout_height="@dimen/h40"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w28"
|
android:background="@drawable/blue_button"
|
android:text="退出"
|
android:textColor="@color/white"
|
android:textSize="@dimen/h13"
|
android:visibility="gone" />
|
|
<Button
|
android:id="@+id/open_system_setting"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_gravity="center"
|
android:layout_marginLeft="@dimen/w28"
|
android:background="@drawable/white_button"
|
android:text="打开系统设置"
|
android:textColor="#222"
|
android:textSize="@dimen/h13" />
|
</LinearLayout>
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
<Space
|
android:layout_width="0dp"
|
android:layout_height="1dp"
|
android:layout_weight="1" />
|
|
|
</LinearLayout>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/error"
|
android:visibility="invisible"
|
/>
|
</RelativeLayout>
|