<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
tools:context=".MainActivity">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:orientation="horizontal"
|
android:layout_height="wrap_content">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="注册消息"
|
android:id="@+id/id_txt"
|
/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="编码"
|
android:id="@+id/id_codec"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="121.40.157.185:5060"
|
android:layout_weight="1"
|
android:id="@+id/id_host"
|
/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="1003"
|
android:layout_weight="1"
|
android:id="@+id/id_user"
|
/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="h1234"
|
android:layout_weight="1"
|
android:id="@+id/id_pwd"
|
/>
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:onClick="reg"
|
android:text="reg"
|
android:id="@+id/id_reg"
|
/>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:onClick="jie"
|
android:text="接听"
|
/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:onClick="gua"
|
android:text="挂短"
|
/>
|
</LinearLayout>
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="呼叫状态"
|
android:id="@+id/id_callstate"
|
/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<EditText
|
android:layout_width="100dp"
|
android:layout_height="wrap_content"
|
android:text="1006"
|
android:id="@+id/id_callnum"
|
/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:onClick="call"
|
android:text="呼叫"
|
/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:onClick="callv"
|
android:text="呼叫v"
|
/>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:onClick="topend"
|
android:text="停止后台"
|
/>
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent" >
|
|
<lilin.com.view.FFWlGLSurfaceView
|
android:id="@+id/id_surfaceview"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent" />
|
|
<SurfaceView
|
android:layout_width="140dp"
|
android:layout_height="180dp"
|
android:id="@+id/surface_view"/>
|
|
</FrameLayout>
|
</LinearLayout>
|