|
@@ -0,0 +1,213 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout>
|
|
|
+ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/gray_deep">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/video_call_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <!--对方画面-->
|
|
|
+ <TextureView
|
|
|
+ android:id="@+id/remote_video_frame"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_gravity="center" />
|
|
|
+
|
|
|
+ <!--本机画面-->
|
|
|
+ <TextureView
|
|
|
+ android:id="@+id/local_video_frame"
|
|
|
+ android:layout_width="200dp"
|
|
|
+ android:layout_height="240dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginRight="10dp"
|
|
|
+ android:layout_alignParentRight="true" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/video_visit_call_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:visibility="gone">
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/visit_video_frame1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:src="@drawable/ic_camera"/>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/visit_video_frame2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <android.support.v7.widget.RecyclerView
|
|
|
+ android:id="@+id/visit_list_view"
|
|
|
+ android:layout_width="320dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_transparent"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_visit_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:text="@string/str_visiting"
|
|
|
+ android:textSize="36sp"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:visibility="gone"/>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_out_call"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="40dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_call_number"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="sip:7550000506003011802201@192.168.3.26"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="28sp" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/button_call"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:text="呼叫"
|
|
|
+ android:textColor="@color/main_color"
|
|
|
+ android:textSize="32sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_voice_call"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="240dp"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sky_call_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text=""
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="32sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/sky_voice_call_calling_text"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text=""
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="32sp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!--呼出-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/sky_voice_call_outgoing"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginBottom="80dp"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+ <Chronometer
|
|
|
+ android:id="@+id/sky_voice_call_timer"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="00:00"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="32dp">
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/sky_voice_call_hangup"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:src="@drawable/selector_call_hangup" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/sky_call_speaker_on"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:layout_marginStart="40dp"
|
|
|
+ android:src="@drawable/ic_speaker_on"
|
|
|
+ android:visibility="gone"/>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!--来电-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/sky_voice_call_incoming"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="140dp"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:layout_marginBottom="80dp"
|
|
|
+ android:gravity="bottom"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_weight="2" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/sky_voice_call_ring_reject"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:src="@drawable/selector_call_hangup" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_weight="1" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/sky_voice_call_ring_pickup_audio"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="100dp"
|
|
|
+ android:src="@drawable/selector_call_answer" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_weight="2" />
|
|
|
+ </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+ </FrameLayout>
|
|
|
+</layout>
|