blob: d4221f26e16c8f8d66c0ec5a89bf22a400a5bd78 [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
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"
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
alisiond45da712013-05-30 09:18:49 -040045 <TabHost
46 android:id="@android:id/tabhost"
Alexandre Savarddef3bfa2012-09-12 16:20:06 -040047 android:layout_width="match_parent"
alisiond45da712013-05-30 09:18:49 -040048 android:layout_height="wrap_content" >
49
alision3c5c2a92013-05-30 09:50:47 -040050 <LinearLayout
alisiond45da712013-05-30 09:18:49 -040051 android:layout_width="match_parent"
alision3c5c2a92013-05-30 09:50:47 -040052 android:layout_height="match_parent"
53 android:orientation="vertical" >
54
55 <TabWidget
56 android:id="@android:id/tabs"
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_weight="0"
60 android:orientation="horizontal" />
61
62 <FrameLayout
63 android:id="@android:id/tabcontent"
64 android:layout_width="0dp"
65 android:layout_height="0dp"
66 android:layout_weight="0" />
67
68 <android.support.v4.view.ViewPager
69 android:id="@+id/pager"
70 android:layout_width="match_parent"
alision2cb99562013-05-30 17:02:20 -040071 android:background="@color/lighter_gray"
alision3c5c2a92013-05-30 09:50:47 -040072 android:layout_height="0dp"
73 android:layout_weight="1" />
74 </LinearLayout>
alisiond45da712013-05-30 09:18:49 -040075 </TabHost>
Alexandre Savardcb66fa42012-10-26 10:06:16 -040076
alision9f7a6ec2013-05-24 16:26:26 -040077 <com.savoirfairelinux.sflphone.views.CustomSlidingDrawer
78 android:id="@+id/custom_sliding_drawer"
79 android:layout_width="match_parent"
80 android:layout_height="wrap_content"
81 android:layout_alignParentBottom="true"
82 android:orientation="vertical"
83 app:content="@+id/contacts_frame"
84 app:handle="@+id/slider_button" >
85
86 <RelativeLayout
87 android:id="@+id/slider_button"
alision7297bdb2013-05-21 11:56:55 -040088 android:layout_width="match_parent"
alision9f7a6ec2013-05-24 16:26:26 -040089 android:layout_height="54dp"
90 android:maxHeight="40dp" >
Emeric Vigierea2f3a92012-09-17 10:26:02 -040091
alision9f7a6ec2013-05-24 16:26:26 -040092 <ImageView
93 android:id="@+id/menu_top_shadow"
94 android:layout_width="match_parent"
95 android:layout_height="4dp"
96 android:layout_alignParentLeft="true"
97 android:layout_alignParentRight="true"
98 android:layout_alignParentTop="true"
99 android:src="@drawable/defaultshadowtop" />
Emeric Vigierea2f3a92012-09-17 10:26:02 -0400100
alision9f7a6ec2013-05-24 16:26:26 -0400101 <ImageView
102 android:id="@+id/handle_cover"
103 android:layout_width="50dp"
104 android:layout_height="50dp"
105 android:layout_alignParentBottom="true"
106 android:layout_alignParentLeft="true"
107 android:layout_below="@+id/menu_top_shadow"
108 android:layout_centerVertical="true"
109 android:background="@color/light"
110 android:scaleType="fitCenter" />
alision7297bdb2013-05-21 11:56:55 -0400111
alisiond45da712013-05-30 09:18:49 -0400112 <TextView
113 android:id="@+id/handle_title"
114 android:layout_width="match_parent"
115 android:layout_height="match_parent"
116 android:layout_alignParentBottom="true"
117 android:layout_below="@+id/menu_top_shadow"
118 android:layout_centerInParent="true"
119 android:layout_toLeftOf="@+id/contact_search_text"
120 android:layout_toRightOf="@+id/handle_cover"
121 android:background="@color/light"
122 android:gravity="center"
123 android:singleLine="true"
124 android:text="Contacts"
125 android:textStyle="bold" />
alision7297bdb2013-05-21 11:56:55 -0400126
alisiond45da712013-05-30 09:18:49 -0400127 <SearchView
128 android:id="@+id/contact_search_text"
129 android:layout_width="wrap_content"
130 android:layout_height="wrap_content"
131 android:layout_alignParentBottom="true"
132 android:layout_alignParentRight="true"
133 android:layout_below="@+id/menu_top_shadow"
134 android:background="@color/light"
135 android:clickable="true"
136 android:focusable="true"
137 android:focusableInTouchMode="true"
138 android:gravity="center" >
139 </SearchView>
alision9f7a6ec2013-05-24 16:26:26 -0400140 </RelativeLayout>
alision7297bdb2013-05-21 11:56:55 -0400141
alision9f7a6ec2013-05-24 16:26:26 -0400142 <FrameLayout
143 android:id="@+id/contacts_frame"
144 android:layout_width="match_parent"
145 android:layout_height="match_parent"
alision2cb99562013-05-30 17:02:20 -0400146 android:background="@color/lighter_gray" />
alision9f7a6ec2013-05-24 16:26:26 -0400147 </com.savoirfairelinux.sflphone.views.CustomSlidingDrawer>
148 </RelativeLayout>
149
150 <FrameLayout
151 android:id="@+id/left_drawer"
152 android:layout_width="240dp"
153 android:layout_height="match_parent"
154 android:layout_gravity="start"
155 android:background="@color/darker_gray"
156 android:choiceMode="singleChoice"
157 android:divider="@android:color/transparent"
158 android:dividerHeight="0dp" />
159
160</android.support.v4.widget.DrawerLayout>