mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
286 lines
No EOL
8.2 KiB
XML
286 lines
No EOL
8.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<include layout="@layout/status" android:id="@+id/statusBar" />
|
|
|
|
<android.support.v4.widget.DrawerLayout
|
|
android:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/statusBar">
|
|
<!-- The main content view -->
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/topLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_above="@id/footer">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentTop="true">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fragmentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal" />
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/footer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="70dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:orientation="horizontal">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/history"
|
|
android:background="@drawable/footer_button"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:layout_margin="10dp"
|
|
android:scaleType="center"
|
|
android:contentDescription="@string/content_description_history"
|
|
android:src="@drawable/footer_history" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/history_select"
|
|
android:background="@color/colorA"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/missedCalls"
|
|
style="@style/font18"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@drawable/history_chat_indicator"
|
|
android:gravity="center"
|
|
android:visibility="gone" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/contacts"
|
|
android:background="@drawable/footer_button"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:adjustViewBounds="true">
|
|
|
|
<ImageView
|
|
android:src="@drawable/footer_contacts"
|
|
android:contentDescription="@string/content_description_contacts"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:layout_margin="10dp"
|
|
android:scaleType="center" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/contacts_select"
|
|
android:background="@color/colorA"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/dialer"
|
|
android:background="@drawable/footer_button"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:adjustViewBounds="true">
|
|
|
|
<ImageView
|
|
android:src="@drawable/footer_dialer"
|
|
android:contentDescription="@string/content_description_dialer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:layout_margin="10dp"
|
|
android:scaleType="center"/>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/dialer_select"
|
|
android:background="@color/colorA"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:layout_alignParentBottom="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/chat"
|
|
android:background="@drawable/footer_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:adjustViewBounds="true">
|
|
|
|
<ImageView
|
|
android:src="@drawable/footer_chat"
|
|
android:contentDescription="@string/content_description_chat"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:layout_margin="10dp"
|
|
android:scaleType="center" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/chat_select"
|
|
android:background="@color/colorA"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:layout_alignParentBottom="true"
|
|
android:visibility="gone"/>
|
|
|
|
<TextView
|
|
android:id="@+id/missedChats"
|
|
style="@style/font18"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@drawable/history_chat_indicator"
|
|
android:gravity="center"
|
|
android:visibility="gone" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fragmentContainer2"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- The navigation drawer -->
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/left_drawer"
|
|
android:layout_gravity="start">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/headerLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="80dp"
|
|
android:background="@color/colorF">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:src="@drawable/avatar"
|
|
android:layout_centerVertical="true" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toRightOf="@+id/icon">
|
|
|
|
<TextView
|
|
android:id="@+id/display_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/font7"
|
|
android:gravity="bottom"
|
|
android:editable="false"/>
|
|
|
|
<TextView
|
|
android:id="@+id/address"
|
|
android:gravity="top"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/icon"
|
|
style="@style/font3"
|
|
android:editable="false"/>
|
|
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
|
|
<ListView android:id="@+id/list_drawer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_below="@id/headerLayout"
|
|
android:choiceMode="singleChoice"
|
|
android:divider="@android:color/transparent"
|
|
android:dividerHeight="0dp"
|
|
android:background="@color/colorH"/>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/exitLayout"
|
|
android:gravity="bottom"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:background="@color/colorA">
|
|
|
|
<ImageView
|
|
android:id="@+id/lol"
|
|
android:layout_width="25dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:src="@drawable/quit_default"
|
|
android:layout_centerVertical="true" />
|
|
|
|
<TextView
|
|
android:id="@+id/exit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toRightOf="@id/lol"
|
|
android:text="@string/menu_exit"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
|
android:gravity="center_vertical"
|
|
android:paddingRight="40dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|
|
|
|
</RelativeLayout> |