2020-09-15 17:57:15 +08:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-09-10 22:38:32 +08:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:background="@color/whitesmoke"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/show"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:layout_marginTop="20dp"
|
2020-09-15 17:57:15 +08:00
|
|
|
android:text="设置"
|
|
|
|
|
android:textColor="#363636"
|
2020-09-10 22:38:32 +08:00
|
|
|
android:textSize="20sp"
|
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-15 17:57:15 +08:00
|
|
|
android:orientation="vertical">
|
2020-09-10 22:38:32 +08:00
|
|
|
|
2020-09-15 17:57:15 +08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView3"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="SIP设置"
|
|
|
|
|
android:textColor="#CCCCCC"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-09-10 22:38:32 +08:00
|
|
|
android:layout_width="fill_parent"
|
2020-09-15 17:57:15 +08:00
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="分机号"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/username"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
|
android:hint="请输入"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="密码"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/userpw"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
|
android:hint="请输入"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="SIP服务器"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/userip"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
|
android:hint="请输入"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="SIP端口"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/userport"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
|
android:hint="请输入"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView4"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="服务器设置"
|
|
|
|
|
android:textColor="#CCCCCC"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="服务器"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/http_host"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
|
android:hint="请输入"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-09-10 22:38:32 +08:00
|
|
|
android:layout_width="fill_parent"
|
2020-09-15 17:57:15 +08:00
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:background="#FFFFFF"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:text="端口"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
|
android:id="@+id/http_port"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:layout_weight="1.5"
|
|
|
|
|
android:hint="请输入"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
android:textColor="#000000"
|
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView5"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="30dp"
|
|
|
|
|
android:layout_weight="1" />
|
2020-09-10 22:38:32 +08:00
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
|
android:background="@drawable/callpad_bg"
|
|
|
|
|
android:onClick="login"
|
2020-09-15 17:57:15 +08:00
|
|
|
android:text="确定"
|
2020-09-10 22:38:32 +08:00
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
|
|
<Button
|
2020-09-14 16:43:36 +08:00
|
|
|
android:layout_width="match_parent"
|
2020-09-10 22:38:32 +08:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
|
android:background="@drawable/red_bg"
|
|
|
|
|
android:onClick="exit2"
|
|
|
|
|
android:text="退出"
|
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
|
android:textSize="20sp"
|
2020-09-22 11:15:45 +08:00
|
|
|
android:visibility="visible" />
|
2020-09-15 17:57:15 +08:00
|
|
|
|
2020-09-10 22:38:32 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
2020-09-15 17:57:15 +08:00
|
|
|
</RelativeLayout>
|