blob: 6774d3a5fd17031c0869a3c51ece143634477e59 [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<!--
Adrien Béraudffd32412012-08-07 18:39:23 -04003Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
4
5Author: Adrien Beraud <adrien.beraud@gmail.com>
6
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"
34 android:id="@+id/drawer_layout"
Alexandre Savardbf744f72012-09-12 10:31:40 -040035 android:layout_width="match_parent"
alision9f7a6ec2013-05-24 16:26:26 -040036 android:layout_height="match_parent" >
Emeric Vigierea2f3a92012-09-17 10:26:02 -040037
alision9f7a6ec2013-05-24 16:26:26 -040038 <RelativeLayout
39 xmlns:android="http://schemas.android.com/apk/res/android"
40 xmlns:app="http://schemas.android.com/apk/res/com.savoirfairelinux.sflphone"
alision7297bdb2013-05-21 11:56:55 -040041 android:layout_width="match_parent"
alision9f7a6ec2013-05-24 16:26:26 -040042 android:layout_height="match_parent"
43 android:orientation="vertical" >
alision7297bdb2013-05-21 11:56:55 -040044
alision9f7a6ec2013-05-24 16:26:26 -040045 <android.support.v4.view.ViewPager
46 android:id="@+id/pager"
Alexandre Savarddef3bfa2012-09-12 16:20:06 -040047 android:layout_width="match_parent"
alision9f7a6ec2013-05-24 16:26:26 -040048 android:layout_height="match_parent" />
Alexandre Savardcb66fa42012-10-26 10:06:16 -040049
alision9f7a6ec2013-05-24 16:26:26 -040050 <com.savoirfairelinux.sflphone.views.CustomSlidingDrawer
51 android:id="@+id/custom_sliding_drawer"
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 android:layout_alignParentBottom="true"
55 android:orientation="vertical"
56 app:content="@+id/contacts_frame"
57 app:handle="@+id/slider_button" >
58
59 <RelativeLayout
60 android:id="@+id/slider_button"
alision7297bdb2013-05-21 11:56:55 -040061 android:layout_width="match_parent"
alision9f7a6ec2013-05-24 16:26:26 -040062 android:layout_height="54dp"
63 android:maxHeight="40dp" >
Emeric Vigierea2f3a92012-09-17 10:26:02 -040064
alision9f7a6ec2013-05-24 16:26:26 -040065 <ImageView
66 android:id="@+id/menu_top_shadow"
67 android:layout_width="match_parent"
68 android:layout_height="4dp"
69 android:layout_alignParentLeft="true"
70 android:layout_alignParentRight="true"
71 android:layout_alignParentTop="true"
72 android:src="@drawable/defaultshadowtop" />
Emeric Vigierea2f3a92012-09-17 10:26:02 -040073
alision9f7a6ec2013-05-24 16:26:26 -040074 <ImageView
75 android:id="@+id/handle_cover"
76 android:layout_width="50dp"
77 android:layout_height="50dp"
78 android:layout_alignParentBottom="true"
79 android:layout_alignParentLeft="true"
80 android:layout_below="@+id/menu_top_shadow"
81 android:layout_centerVertical="true"
82 android:background="@color/light"
83 android:scaleType="fitCenter" />
alision7297bdb2013-05-21 11:56:55 -040084
alision7297bdb2013-05-21 11:56:55 -040085
alision84813a12013-05-27 17:40:39 -040086
87 <TextView
88 android:id="@+id/handle_title"
89 android:layout_width="match_parent"
90 android:layout_height="match_parent"
91 android:layout_alignParentBottom="true"
92 android:layout_below="@+id/menu_top_shadow"
93 android:layout_centerInParent="true"
94 android:layout_toLeftOf="@+id/contact_search_text"
95 android:layout_toRightOf="@+id/handle_cover"
96 android:background="@color/light"
97 android:gravity="center"
98 android:singleLine="true"
99 android:text="Contacts"
100 android:textStyle="bold" />
101
102 <SearchView
103 android:id="@+id/contact_search_text"
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:clickable="true"
107 android:focusable="true"
108 android:focusableInTouchMode="true"
109 android:layout_alignParentBottom="true"
110 android:layout_alignParentRight="true"
111 android:layout_below="@+id/menu_top_shadow"
112 android:gravity="center"
113 android:background="@color/light" >
114 </SearchView>
115
116
alision9f7a6ec2013-05-24 16:26:26 -0400117 </RelativeLayout>
alision7297bdb2013-05-21 11:56:55 -0400118
alision9f7a6ec2013-05-24 16:26:26 -0400119 <FrameLayout
120 android:id="@+id/contacts_frame"
121 android:layout_width="match_parent"
122 android:layout_height="match_parent"
123 android:background="#FFFFFF" />
124 </com.savoirfairelinux.sflphone.views.CustomSlidingDrawer>
125 </RelativeLayout>
126
127 <FrameLayout
128 android:id="@+id/left_drawer"
129 android:layout_width="240dp"
130 android:layout_height="match_parent"
131 android:layout_gravity="start"
132 android:background="@color/darker_gray"
133 android:choiceMode="singleChoice"
134 android:divider="@android:color/transparent"
135 android:dividerHeight="0dp" />
136
137</android.support.v4.widget.DrawerLayout>