mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 11:58:09 +00:00
525 lines
16 KiB
XML
525 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/topLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<android.support.v4.widget.DrawerLayout
|
|
android:id="@+id/side_menu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/status">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fragmentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@+id/menu"
|
|
android:layout_marginTop="30dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/conference_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_gravity="top"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/active_call"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="false"
|
|
android:layout_centerInParent="false"
|
|
android:layout_centerVertical="false"
|
|
android:visibility="visible">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/action_menu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginTop="10dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/switchCamera"
|
|
android:layout_width="70dp"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentLeft="true"
|
|
android:contentDescription="@string/content_description_switch_camera"
|
|
android:src="@drawable/switch_camera"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/encryption"
|
|
android:layout_width="70dp"
|
|
android:layout_height="60dp"
|
|
android:layout_toLeftOf="@+id/pause"
|
|
android:layout_toStartOf="@+id/pause"
|
|
android:contentDescription="@string/content_description_encryption"
|
|
android:src="@drawable/security_button1_over"
|
|
android:visibility="visible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/pause"
|
|
android:layout_width="70dp"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentRight="true"
|
|
android:contentDescription="@string/content_description_pause"
|
|
android:src="@drawable/pause_big_default"/>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/avatar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:gravity="center_vertical|center_horizontal"
|
|
android:paddingBottom="10dp"
|
|
android:paddingTop="10dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/contact_picture"
|
|
android:layout_width="180dp"
|
|
android:layout_height="180dp"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/content_description_contact_picture"
|
|
android:src="@drawable/avatar_big_secure1"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/mask"
|
|
android:layout_width="200dp"
|
|
android:layout_height="200dp"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/content_description_contact_picture"
|
|
android:src="@drawable/avatar_mask_border"
|
|
android:visibility="gone"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/remote_pause"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#ff6600"
|
|
android:visibility="gone">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/action_menu2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="false">
|
|
|
|
<ImageView
|
|
android:id="@+id/pause2"
|
|
android:layout_width="70dp"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true"
|
|
android:contentDescription="@string/content_description_pause"
|
|
android:src="@drawable/pause_big_default"/>
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/pause_logo"
|
|
android:layout_width="115dp"
|
|
android:layout_height="115dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/waiting_time"/>
|
|
|
|
<TextView
|
|
style="@style/font16"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/pause_logo"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center"
|
|
android:text="@string/call_paused_by_remote"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/active_call_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:layout_above="@+id/calls_list"
|
|
android:layout_alignParentBottom="false"
|
|
android:alpha="0.8"
|
|
android:background="@color/colorH"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/current_contact_name"
|
|
style="@style/font5"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:paddingTop="5dp"/>
|
|
|
|
<Chronometer
|
|
android:id="@+id/current_call_timer"
|
|
style="@style/font2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/calls_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_gravity="bottom"
|
|
android:background="@color/colorH"
|
|
android:orientation="vertical">
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/no_current_call"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0"
|
|
android:background="#e6ff6600"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:visibility="visible">
|
|
|
|
<ImageView
|
|
android:layout_width="115dp"
|
|
android:layout_height="115dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/waiting_time"
|
|
android:visibility="gone"/>
|
|
|
|
<TextView
|
|
style="@style/font16"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/no_current_call"/>
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/menu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:background=" #595959 "
|
|
android:orientation="horizontal">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/video"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@string/content_description_switch_video"
|
|
android:padding="15dp"
|
|
android:src="@drawable/camera_button"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/video_in_progress"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:visibility="gone"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/micro"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/content_description_toggle_micro"
|
|
android:padding="7dp"
|
|
android:src="@drawable/micro_default"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/speaker"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/content_description_toggle_speaker"
|
|
android:padding="10dp"
|
|
android:src="@drawable/speaker_default"
|
|
/>
|
|
|
|
<ImageView
|
|
android:id="@+id/audio_route"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/content_description_audio_route"
|
|
android:src="@drawable/routes"
|
|
android:visibility="gone"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/options"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/content_description_call_options"
|
|
android:padding="10dp"
|
|
android:src="@drawable/options_default"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/dialer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.8"
|
|
android:background="@color/colorB"
|
|
android:contentDescription="@string/content_description_numpad"
|
|
android:padding="10dp"
|
|
android:src="@drawable/footer_dialer"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/hang_up"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.4"
|
|
android:background="@color/colorB"
|
|
android:contentDescription="@string/content_description_hang_up"
|
|
android:src="@drawable/call_hangup"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:background="@drawable/footer_button">
|
|
|
|
<ImageView
|
|
android:id="@+id/chat"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_centerInParent="true"
|
|
android:background="@color/colorB"
|
|
android:contentDescription="@string/content_description_chat_button"
|
|
android:padding="10dp"
|
|
android:src="@drawable/footer_chat"/>
|
|
|
|
<TextView
|
|
android:id="@+id/missed_chats"
|
|
style="@style/font18"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_margin="15dp"
|
|
android:background="@drawable/history_chat_indicator"
|
|
android:gravity="center"
|
|
android:textColor="#000000"
|
|
android:visibility="gone"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/menu_bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_above="@id/menu"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:visibility="invisible"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/route_bluetooth"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:background="#aeaeae"
|
|
android:contentDescription="@string/content_description_bluetooth"
|
|
android:padding="15dp"
|
|
android:src="@drawable/route_bluetooth"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/add_call"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:background="#aeaeae"
|
|
android:contentDescription="@string/content_description_add_call"
|
|
android:padding="10dp"
|
|
android:src="@drawable/options_add_call_button"
|
|
android:visibility="invisible"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/menu_middle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_above="@id/menu_bottom"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:visibility="invisible"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/route_earpiece"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:background="#aeaeae"
|
|
android:contentDescription="@string/content_description_earpiece"
|
|
android:padding="15dp"
|
|
android:src="@drawable/route_earpiece"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/transfer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:background="#aeaeae"
|
|
android:contentDescription="@string/content_description_transfer"
|
|
android:padding="10dp"
|
|
android:src="@drawable/options_transfer_call_button"
|
|
android:visibility="invisible"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_above="@id/menu_middle"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:visibility="invisible"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/route_speaker"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:background="#aeaeae"
|
|
android:contentDescription="@string/content_description_toggle_speaker"
|
|
android:padding="15dp"
|
|
android:src="@drawable/route_speaker"
|
|
android:visibility="invisible"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/conference"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.5"
|
|
android:background="#aeaeae"
|
|
android:contentDescription="@string/content_description_conference"
|
|
android:padding="5dp"
|
|
android:src="@drawable/options_start_conference_over"
|
|
android:visibility="invisible"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<org.linphone.ui.Numpad
|
|
android:id="@+id/numpad"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/menu"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginBottom="10dp"
|
|
android:layout_marginTop="50dp"
|
|
android:background="#282727"
|
|
android:contentDescription="@string/content_description_numpad"
|
|
android:visibility="gone"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/side_menu_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="left"
|
|
android:layout_marginTop="30dp"
|
|
android:background="@color/colorH">
|
|
|
|
<include
|
|
android:id="@+id/incall_stats"
|
|
layout="@layout/incall_stats"
|
|
/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|
|
|
|
<fragment
|
|
android:id="@+id/status"
|
|
android:name="org.linphone.fragments.StatusFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="30dp"
|
|
tools:layout="@layout/status"/>
|
|
|
|
</RelativeLayout>
|