blob: 8bbabda96373a367c27d7663de0c362f3a2b9e76 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (C) 2004-2016 Savoir-faire Linux Inc.
Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout 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"
tools:context=".client.CallActivity">
<SurfaceView
android:id="@+id/video_preview_surface"
android:layout_width="match_parent"
android:layout_height="32dp"
android:layout_centerInParent="true"
android:layout_gravity="center"
android:visibility="gone"
tools:visibility="visible" />
<SurfaceView
android:id="@+id/camera_preview_surface"
android:layout_width="160dp"
android:layout_height="120dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_margin="8dp"
android:visibility="gone"
tools:visibility="visible" />
<LinearLayout
android:id="@+id/contact_bubble_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="16dp"
android:orientation="horizontal"
android:weightSum="100">
<com.skyfishjy.library.RippleBackground
android:id="@+id/ripple_animation"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="50"
app:rb_color="@color/white"
app:rb_duration="5000"
app:rb_radius="20dp"
app:rb_rippleAmount="3"
app:rb_scale="6">
<ImageView
android:id="@+id/contact_bubble"
android:layout_width="160dp"
android:layout_height="160dp"
android:layout_centerInParent="true"
tools:src="@drawable/ic_contact_picture" />
</com.skyfishjy.library.RippleBackground>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:layout_weight="50"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/contact_bubble_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="middle"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@color/text_color_primary_dark"
tools:text="Contact Name" />
<TextView
android:id="@+id/contact_bubble_num_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="middle"
android:paddingEnd="32dp"
android:paddingStart="32dp"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/text_color_secondary_dark"
tools:text="ring:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
<TextView
android:id="@+id/call_status_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textColor="@color/text_color_primary_dark"
android:textSize="16sp"
tools:text="Connecting" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="12dp"
android:orientation="horizontal">
<android.support.design.widget.FloatingActionButton
android:id="@+id/call_refuse_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:contentDescription="@string/action_call_decline"
android:src="@drawable/ic_call_end_white"
app:backgroundTint="@color/error_red"
app:elevation="6dp"
app:pressedTranslationZ="12dp"
app:rippleColor="@android:color/white" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/call_accept_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:contentDescription="@string/action_call_accept"
android:src="@drawable/ic_call_white"
app:backgroundTint="#4caf50"
app:elevation="6dp"
app:pressedTranslationZ="12dp"
app:rippleColor="@android:color/white" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:id="@+id/call_hangup_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="48dp"
android:src="@drawable/ic_call_end_white"
app:backgroundTint="@color/error_red"
app:elevation="6dp"
app:pressedTranslationZ="12dp"
app:rippleColor="@android:color/white" />
<EditText
android:id="@+id/dialpad_edit_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="phone"
android:visibility="visible" />
</RelativeLayout>