<?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:orientation="vertical">
|
|
<LinearLayout
|
android:layout_gravity="center"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
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
|
style="@style/titleText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h57"
|
android:text="本机IP设置"/>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="IP地址:" />
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
android:id="@+id/local_ip"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="子网掩码:" />
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
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"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="网关地址:"/>
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
android:id="@+id/gateway"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="设备名称:"/>
|
|
<EditText
|
android:id="@+id/deviceName"
|
style="@style/contentText"
|
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" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="设备地址:"/>
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
android:id="@+id/deviceAddress"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="设备ID:"/>
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
android:id="@+id/deviceId"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true"/>
|
</LinearLayout>
|
<TextView
|
style="@style/titleText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h57"
|
android:text="前端设备配置" />
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal"
|
android:gravity="center_vertical">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="match_parent"
|
android:gravity="center_vertical|right"
|
android:text="IP:" />
|
|
<EditText
|
style="@style/contentText"
|
android:id="@+id/serverIp"
|
android:textCursorDrawable="@null"
|
android:layout_width="@dimen/w185"
|
android:layout_height="@dimen/h33"
|
android:background="@drawable/bg_edittext1"
|
android:inputType="text"
|
android:paddingLeft="@dimen/w15"
|
android:singleLine="true" />
|
|
</LinearLayout>
|
|
<TextView
|
style="@style/titleText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h57"
|
android:text="模式配置" />
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal"
|
android:gravity="center_vertical">
|
<RadioGroup
|
android:id="@+id/ip_mode"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<RadioButton
|
android:id="@+id/transferPicture"
|
android:layout_marginLeft="@dimen/w108"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:button="@drawable/radiobutton"
|
android:text="传输图片"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
|
<RadioButton
|
android:id="@+id/transferVideo"
|
android:layout_marginLeft="@dimen/w50"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:button="@drawable/radiobutton"
|
android:text="传输视频"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h13" />
|
</RadioGroup>
|
|
</LinearLayout>
|
|
|
|
|
|
<TextView
|
android:visibility="gone"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="本机IP"
|
android:textColor="@color/black"
|
android:textSize="@dimen/h15" />
|
|
<LinearLayout
|
android:visibility="gone"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w60"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text=" IP:"/>
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:paddingLeft="@dimen/w15" />
|
</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
|
style="@style/titleText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h63"
|
android:text="修改密码"/>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="旧密码:" />
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
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"/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="新密码:" />
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
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" />
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w108"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="确认密码:"/>
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
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" />
|
</LinearLayout>
|
<TextView
|
style="@style/titleText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h57"
|
android:text="图片播放时间配置"/>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal"
|
android:gravity="center_vertical">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="match_parent"
|
android:gravity="center_vertical|right"
|
android:text="持续时间:"/>
|
|
<com.basic.security.widget.CustomSpinner
|
android:id="@+id/passSecondToNextPicture"
|
android:layout_width="@dimen/w175"
|
android:layout_height="@dimen/h32"
|
android:background="@drawable/spinner_arrow_down"
|
android:dropDownSelector="@color/transparent"
|
android:dropDownVerticalOffset="0dp"
|
android:paddingBottom="2dp"
|
android:paddingTop="2dp"
|
android:spinnerMode="dropdown" />
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w6"
|
android:text="秒"/>
|
</LinearLayout>
|
|
<TextView
|
style="@style/titleText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w34"
|
android:layout_marginTop="@dimen/h57"
|
android:text="无操作返回时间配置" />
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal"
|
android:gravity="center_vertical">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="@dimen/w180"
|
android:layout_height="match_parent"
|
android:gravity="center_vertical|right"
|
android:text="持续无操作返回时间:" />
|
|
<com.basic.security.widget.CustomSpinner
|
android:id="@+id/passSecondGoHome"
|
android:layout_width="@dimen/w175"
|
android:layout_height="@dimen/h32"
|
android:background="@drawable/spinner_arrow_down"
|
android:dropDownSelector="@color/transparent"
|
android:dropDownVerticalOffset="0dp"
|
android:paddingBottom="2dp"
|
android:paddingTop="2dp"
|
android:spinnerMode="dropdown" />
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w6"
|
android:text="秒" />
|
</LinearLayout>
|
<TextView
|
android:visibility="gone"
|
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:visibility="gone"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/w60"
|
android:layout_marginTop="@dimen/h24"
|
android:orientation="horizontal">
|
|
<TextView
|
style="@style/contentText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="right"
|
android:text="密码:" />
|
|
<EditText
|
style="@style/contentText"
|
android:textCursorDrawable="@null"
|
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" />
|
</LinearLayout>
|
|
</LinearLayout>
|
<Space
|
android:layout_width="1dp"
|
android:layout_height="0dp"
|
android:layout_weight="1"/>
|
</LinearLayout>
|
<Space
|
android:layout_width="0dp"
|
android:layout_height="1dp"
|
android:layout_weight="1"/>
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="@dimen/h66"
|
android:layout_gravity="center_horizontal">
|
<Button
|
style="@style/contentText"
|
android:id="@+id/save"
|
android:layout_width="@dimen/w65"
|
android:layout_height="@dimen/h40"
|
android:textColor="@color/white"
|
android:layout_gravity="center"
|
android:background="@drawable/blue_button"
|
android:text="保存"/>
|
<Button
|
style="@style/contentText"
|
android:id="@+id/goto_home"
|
android:layout_marginLeft="@dimen/w28"
|
android:layout_width="@dimen/w65"
|
android:layout_height="@dimen/h40"
|
android:textColor="@color/white"
|
android:layout_gravity="center"
|
android:background="@drawable/blue_button"
|
android:text="返回"/>
|
<Button
|
android:id="@+id/exit"
|
android:layout_marginLeft="@dimen/w28"
|
android:layout_width="@dimen/w65"
|
android:layout_height="@dimen/h40"
|
android:textSize="@dimen/h13"
|
android:textColor="@color/white"
|
android:layout_gravity="center"
|
android:background="@drawable/blue_button"
|
android:text="退出"
|
android:visibility="gone"
|
/>
|
</LinearLayout>
|
</LinearLayout>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/error"
|
android:visibility="invisible"
|
/>
|
</RelativeLayout>
|