Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 2 | <!-- |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 3 | Copyright (C) 2004-2012 Savoir-Faire Linux Inc. |
| 4 | |
| 5 | Author: Adrien Beraud <adrien.beraud@gmail.com> |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 20 | |
| 21 | Additional permission under GNU GPL version 3 section 7: |
| 22 | |
| 23 | If you modify this program, or any covered work, by linking or |
| 24 | combining it with the OpenSSL project's OpenSSL library (or a |
| 25 | modified version of that library), containing parts covered by the |
| 26 | terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc. |
| 27 | grants you additional permission to convey the resulting work. |
| 28 | Corresponding Source for a non-source form of such a combination |
| 29 | shall include the source code for the parts of OpenSSL used as well |
| 30 | as that of the covered work. |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 31 | --> |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 32 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 33 | <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 34 | android:id="@+id/drawer_layout" |
Alexandre Savard | bf744f7 | 2012-09-12 10:31:40 -0400 | [diff] [blame] | 35 | android:layout_width="match_parent" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 36 | android:layout_height="match_parent" > |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 37 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 38 | <RelativeLayout |
| 39 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 40 | xmlns:app="http://schemas.android.com/apk/res/com.savoirfairelinux.sflphone" |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 41 | android:layout_width="match_parent" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 42 | android:layout_height="match_parent" |
| 43 | android:orientation="vertical" > |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 44 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 45 | <android.support.v4.view.ViewPager |
| 46 | android:id="@+id/pager" |
Alexandre Savard | def3bfa | 2012-09-12 16:20:06 -0400 | [diff] [blame] | 47 | android:layout_width="match_parent" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 48 | android:layout_height="match_parent" /> |
Alexandre Savard | cb66fa4 | 2012-10-26 10:06:16 -0400 | [diff] [blame] | 49 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 50 | <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" |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 61 | android:layout_width="match_parent" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 62 | android:layout_height="54dp" |
| 63 | android:maxHeight="40dp" > |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 64 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 65 | <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 Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 73 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 74 | <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" /> |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 84 | |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 85 | |
alision | 84813a1 | 2013-05-27 17:40:39 -0400 | [diff] [blame] | 86 | |
| 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 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 117 | </RelativeLayout> |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 118 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 119 | <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> |