|
@@ -0,0 +1,188 @@
|
|
|
+<?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">
|
|
|
+
|
|
|
+ <!--密码框-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_password"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_psw_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:hint="请输入密码"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+
|
|
|
+ <GridView
|
|
|
+ android:id="@+id/grid_psw"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:verticalSpacing="5dp"
|
|
|
+ android:horizontalSpacing="5dp"
|
|
|
+ android:numColumns="3"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_delete"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:text="删除"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_cancel"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:text="取消"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_confirm"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:text="确定"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <!--服务器ip配置-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_server_config"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="Server IP:"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_url"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="textUri"
|
|
|
+ android:textSize="12sp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="Port:"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_port"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="number"
|
|
|
+ android:textSize="12sp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="Sip IP:"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_sip_url"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="textUri"
|
|
|
+ android:textSize="12sp"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="Sip port:"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textColor="@color/main_color"/>
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_sip_port"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="number"
|
|
|
+ android:textSize="12sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_cancel_config"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="取消"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="@color/black"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/btn_save_config"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="保存"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textColor="@color/black" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+</RelativeLayout>
|