<?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:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="?attr/backgroundColor">
|
|
<fragment
|
android:id="@+id/status_fragment"
|
android:name="org.linphone.fragments.StatusBarFragment"
|
android:layout_width="match_parent"
|
android:layout_height="35dp"
|
tools:layout="@layout/status_bar" />
|
|
<androidx.drawerlayout.widget.DrawerLayout
|
android:id="@+id/side_menu"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/status_fragment">
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:id="@+id/top_bar"
|
android:layout_width="match_parent"
|
android:layout_height="60dp"
|
android:background="?attr/lighToolbarBackgroundColor"
|
android:orientation="horizontal"
|
android:visibility="gone">
|
|
<ImageView
|
android:id="@+id/cancel"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.2"
|
android:background="?attr/button_background_drawable"
|
android:contentDescription="@string/content_description_dialer_back"
|
android:padding="18dp"
|
android:src="@drawable/back" />
|
|
<TextView
|
android:id="@+id/top_bar_title"
|
style="@style/toolbar_title_font"
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.6"
|
android:gravity="center"
|
android:singleLine="true"
|
android:ellipsize="end"
|
android:padding="15dp" />
|
|
<View
|
android:layout_width="0dp"
|
android:layout_height="match_parent"
|
android:layout_weight="0.2" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/fragmentContainer"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/top_bar"
|
android:layout_toRightOf="@+id/footer"
|
android:orientation="horizontal" />
|
|
<LinearLayout
|
android:id="@+id/footer"
|
android:layout_width="60dp"
|
android:layout_height="match_parent"
|
android:layout_alignParentBottom="true"
|
android:orientation="vertical">
|
|
<RelativeLayout
|
android:id="@+id/history"
|
android:layout_width="60dp"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:background="@drawable/footer_button">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:contentDescription="@string/content_description_history"
|
android:padding="15dp"
|
android:src="@drawable/footer_history" />
|
|
<View
|
android:id="@+id/history_select"
|
android:layout_width="5dp"
|
android:layout_height="match_parent"
|
android:layout_alignParentLeft="true"
|
android:background="?attr/accentColor"
|
android:visibility="gone" />
|
|
<TextView
|
android:id="@+id/missed_calls"
|
style="@style/unread_count_font"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_alignParentRight="true"
|
android:layout_marginTop="15dp"
|
android:layout_marginRight="5dp"
|
android:background="@drawable/unread_message_count_bg"
|
android:gravity="center"
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/contacts"
|
android:layout_width="60dp"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:background="@drawable/footer_button">
|
|
<ImageView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:contentDescription="@string/content_description_contacts"
|
android:padding="15dp"
|
android:src="@drawable/footer_contacts" />
|
|
<View
|
android:id="@+id/contacts_select"
|
android:layout_width="5dp"
|
android:layout_height="match_parent"
|
android:layout_alignParentLeft="true"
|
android:background="?attr/accentColor"
|
android:visibility="gone" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/dialer"
|
android:layout_width="60dp"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:background="@drawable/footer_button">
|
|
<ImageView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:contentDescription="@string/content_description_dialer"
|
android:padding="15dp"
|
android:src="@drawable/footer_dialer" />
|
|
<View
|
android:id="@+id/dialer_select"
|
android:layout_width="5dp"
|
android:layout_height="match_parent"
|
android:layout_alignParentLeft="true"
|
android:background="?attr/accentColor" />
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:id="@+id/chat"
|
android:layout_width="60dp"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:background="@drawable/footer_button">
|
|
<ImageView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_centerInParent="true"
|
android:contentDescription="@string/content_description_chat_button"
|
android:padding="15dp"
|
android:src="@drawable/footer_chat" />
|
|
<View
|
android:id="@+id/chat_select"
|
android:layout_width="5dp"
|
android:layout_height="match_parent"
|
android:layout_alignParentLeft="true"
|
android:background="?attr/accentColor"
|
android:visibility="gone" />
|
|
<TextView
|
android:id="@+id/missed_chats"
|
style="@style/unread_count_font"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_alignParentEnd="true"
|
android:layout_alignParentRight="true"
|
android:layout_marginTop="15dp"
|
android:layout_marginRight="5dp"
|
android:background="@drawable/unread_message_count_bg"
|
android:gravity="center"
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/fragmentContainer2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:visibility="gone">
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
<!-- Side Menu -->
|
<RelativeLayout
|
android:id="@+id/side_menu_content"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_gravity="left">
|
|
<fragment
|
android:id="@+id/side_menu_fragment"
|
android:name="org.linphone.menu.SideMenuFragment"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:layout="@layout/side_menu" />
|
|
</RelativeLayout>
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|
|
</RelativeLayout>
|