blob: 8743df5c025b4455de8505d9afede60fc7077c87 [file] [log] [blame]
Adrien Béraudffd32412012-08-07 18:39:23 -04001<?xml version="1.0" encoding="utf-8"?>
Emeric Vigierea2f3a92012-09-17 10:26:02 -04002<!--
alision5de91782013-07-10 10:47:30 -04003Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
Adrien Béraudffd32412012-08-07 18:39:23 -04004
alisiond45da712013-05-30 09:18:49 -04005Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Adrien Béraudffd32412012-08-07 18:39:23 -04006
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21Additional permission under GNU GPL version 3 section 7:
22
23If you modify this program, or any covered work, by linking or
24combining it with the OpenSSL project's OpenSSL library (or a
25modified version of that library), containing parts covered by the
26terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27grants you additional permission to convey the resulting work.
28Corresponding Source for a non-source form of such a combination
29shall include the source code for the parts of OpenSSL used as well
30as that of the covered work.
Emeric Vigierea2f3a92012-09-17 10:26:02 -040031-->
Adrien Béraudffd32412012-08-07 18:39:23 -040032
alision9f7a6ec2013-05-24 16:26:26 -040033<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
Alexandre Lision064e1e02013-10-01 16:18:42 -040034 xmlns:app="http://schemas.android.com/apk/res/org.sflphone"
alision9f7a6ec2013-05-24 16:26:26 -040035 android:id="@+id/drawer_layout"
Alexandre Savardbf744f72012-09-12 10:31:40 -040036 android:layout_width="match_parent"
Alexandre Lisionf1850c02013-09-23 14:19:34 -040037 android:layout_height="match_parent" >
Emeric Vigierea2f3a92012-09-17 10:26:02 -040038
alision9f7a6ec2013-05-24 16:26:26 -040039 <RelativeLayout
40 xmlns:android="http://schemas.android.com/apk/res/android"
Alexandre Lision064e1e02013-10-01 16:18:42 -040041 xmlns:app="http://schemas.android.com/apk/res/org.sflphone"
alision7297bdb2013-05-21 11:56:55 -040042 android:layout_width="match_parent"
alision9f7a6ec2013-05-24 16:26:26 -040043 android:layout_height="match_parent"
44 android:orientation="vertical" >
alision7297bdb2013-05-21 11:56:55 -040045
Alexandre Lisione5b66022013-10-30 11:34:15 -040046 <org.sflphone.views.PagerSlidingTabStrip
47 android:id="@+id/pts_main"
48 android:layout_width="match_parent"
49 android:layout_height="?android:attr/actionBarSize"
50 android:layout_alignParentTop="true"
51 app:underlineColor="@color/sfl_light_blue"
52 app:indicatorColor="@color/sfl_light_blue"
53 android:background="@color/sfl_blue_0"
54 android:layout_marginTop="?android:attr/actionBarSize" />
55
Alexandre Lisionf1850c02013-09-23 14:19:34 -040056 <android.support.v4.view.ViewPager
57 android:id="@+id/pager"
Alexandre Savarddef3bfa2012-09-12 16:20:06 -040058 android:layout_width="match_parent"
Alexandre Lisionf1850c02013-09-23 14:19:34 -040059 android:layout_height="match_parent"
Alexandre Lisione5b66022013-10-30 11:34:15 -040060 android:layout_below="@+id/pts_main"
Alexandre Lisionf1850c02013-09-23 14:19:34 -040061 android:background="#000000"
Alexandre Lisione5b66022013-10-30 11:34:15 -040062 android:paddingBottom="@dimen/contact_drawer_handle_height" />
Alexandre Savardcb66fa42012-10-26 10:06:16 -040063
Alexandre Lision8b9d8e82013-10-04 09:21:27 -040064 <!-- <ImageView -->
65 <!-- android:id="@+id/handle_circle" -->
66 <!-- android:layout_width="80dp" -->
67 <!-- android:layout_height="80dp" -->
68 <!-- android:layout_alignParentBottom="true" -->
69 <!-- android:layout_centerHorizontal="true" -->
70 <!-- android:gravity="center" -->
71 <!-- android:background="@drawable/drawer_disc_handle" -->
72 <!-- android:textStyle="bold" /> -->
73
Alexandre Lision064e1e02013-10-01 16:18:42 -040074 <org.sflphone.views.CustomSlidingDrawer
alision9f7a6ec2013-05-24 16:26:26 -040075 android:id="@+id/custom_sliding_drawer"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:layout_alignParentBottom="true"
79 android:orientation="vertical"
Alexandre Lisiona764c682013-09-09 10:02:07 -040080 app:animateOnClick="true"
alision9f7a6ec2013-05-24 16:26:26 -040081 app:content="@+id/contacts_frame"
82 app:handle="@+id/slider_button" >
83
84 <RelativeLayout
85 android:id="@+id/slider_button"
alision7297bdb2013-05-21 11:56:55 -040086 android:layout_width="match_parent"
alision55c36cb2013-06-14 14:57:38 -040087 android:layout_height="40dp"
alision9f7a6ec2013-05-24 16:26:26 -040088 android:maxHeight="40dp" >
Emeric Vigierea2f3a92012-09-17 10:26:02 -040089
alision9f7a6ec2013-05-24 16:26:26 -040090 <ImageView
91 android:id="@+id/menu_top_shadow"
92 android:layout_width="match_parent"
93 android:layout_height="4dp"
94 android:layout_alignParentLeft="true"
alision9f7a6ec2013-05-24 16:26:26 -040095 android:layout_alignParentTop="true"
96 android:src="@drawable/defaultshadowtop" />
Emeric Vigierea2f3a92012-09-17 10:26:02 -040097
Alexandre Lision5c81c5b2013-10-02 17:33:32 -040098 <ImageView
alisiond45da712013-05-30 09:18:49 -040099 android:id="@+id/handle_title"
100 android:layout_width="match_parent"
101 android:layout_height="match_parent"
102 android:layout_alignParentBottom="true"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -0400103 android:layout_alignParentRight="true"
alisiond45da712013-05-30 09:18:49 -0400104 android:layout_below="@+id/menu_top_shadow"
105 android:layout_centerInParent="true"
Alexandre Lision5c81c5b2013-10-02 17:33:32 -0400106 android:background="@color/sfl_dark_blue"
alisiond45da712013-05-30 09:18:49 -0400107 android:gravity="center"
108 android:singleLine="true"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -0400109 android:src="@drawable/ic_action_group"
alisiond45da712013-05-30 09:18:49 -0400110 android:textStyle="bold" />
alision7297bdb2013-05-21 11:56:55 -0400111
alision55c36cb2013-06-14 14:57:38 -0400112 <ImageButton
113 android:id="@+id/contact_search_button"
Alexandre Lision5c81c5b2013-10-02 17:33:32 -0400114 android:layout_width="wrap_content"
alisiond45da712013-05-30 09:18:49 -0400115 android:layout_height="wrap_content"
116 android:layout_alignParentBottom="true"
117 android:layout_alignParentRight="true"
118 android:layout_below="@+id/menu_top_shadow"
Alexandre Lision5c81c5b2013-10-02 17:33:32 -0400119 android:background="@color/sfl_dark_blue"
Alexandre Lisionf41a3a82013-09-05 17:15:15 -0400120 android:gravity="center"
121 android:src="@drawable/ic_btn_search" >
alision55c36cb2013-06-14 14:57:38 -0400122 </ImageButton>
alision9f7a6ec2013-05-24 16:26:26 -0400123 </RelativeLayout>
alision7297bdb2013-05-21 11:56:55 -0400124
alision9f7a6ec2013-05-24 16:26:26 -0400125 <FrameLayout
126 android:id="@+id/contacts_frame"
127 android:layout_width="match_parent"
128 android:layout_height="match_parent"
Alexandre Lision8b9d8e82013-10-04 09:21:27 -0400129 android:background="@color/sfl_dark_blue" />
Alexandre Lision064e1e02013-10-01 16:18:42 -0400130 </org.sflphone.views.CustomSlidingDrawer>
alision9f7a6ec2013-05-24 16:26:26 -0400131 </RelativeLayout>
132
133 <FrameLayout
134 android:id="@+id/left_drawer"
Alexandre Lision8a1bab82013-10-24 10:06:51 -0400135 android:layout_width="300dp"
alision9f7a6ec2013-05-24 16:26:26 -0400136 android:layout_height="match_parent"
137 android:layout_gravity="start"
alision9f7a6ec2013-05-24 16:26:26 -0400138 android:choiceMode="singleChoice"
139 android:divider="@android:color/transparent"
140 android:dividerHeight="0dp" />
141
142</android.support.v4.widget.DrawerLayout>