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 | <!-- |
alision | 5de9178 | 2013-07-10 10:47:30 -0400 | [diff] [blame] | 3 | Copyright (C) 2004-2013 Savoir-Faire Linux Inc. |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 4 | |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 5 | Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
Adrien Béraud | ffd3241 | 2012-08-07 18:39:23 -0400 | [diff] [blame] | 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 | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 45 | <TabHost |
| 46 | android:id="@android:id/tabhost" |
Alexandre Savard | def3bfa | 2012-09-12 16:20:06 -0400 | [diff] [blame] | 47 | android:layout_width="match_parent" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 48 | android:layout_height="wrap_content" > |
| 49 | |
alision | 3c5c2a9 | 2013-05-30 09:50:47 -0400 | [diff] [blame] | 50 | <LinearLayout |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 51 | android:layout_width="match_parent" |
alision | 3c5c2a9 | 2013-05-30 09:50:47 -0400 | [diff] [blame] | 52 | 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" |
alision | 5cfc35d | 2013-07-11 15:11:39 -0400 | [diff] [blame^] | 71 | android:background="#FFFFFF" |
alision | 3c5c2a9 | 2013-05-30 09:50:47 -0400 | [diff] [blame] | 72 | android:layout_height="0dp" |
| 73 | android:layout_weight="1" /> |
| 74 | </LinearLayout> |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 75 | </TabHost> |
Alexandre Savard | cb66fa4 | 2012-10-26 10:06:16 -0400 | [diff] [blame] | 76 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 77 | <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" |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 88 | android:layout_width="match_parent" |
alision | 55c36cb | 2013-06-14 14:57:38 -0400 | [diff] [blame] | 89 | android:layout_height="40dp" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 90 | android:maxHeight="40dp" > |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 91 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 92 | <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 Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 100 | |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 101 | |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 102 | <TextView |
| 103 | android:id="@+id/handle_title" |
| 104 | android:layout_width="match_parent" |
| 105 | android:layout_height="match_parent" |
| 106 | android:layout_alignParentBottom="true" |
| 107 | android:layout_below="@+id/menu_top_shadow" |
| 108 | android:layout_centerInParent="true" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 109 | android:background="@color/light" |
| 110 | android:gravity="center" |
| 111 | android:singleLine="true" |
| 112 | android:text="Contacts" |
| 113 | android:textStyle="bold" /> |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 114 | |
alision | 55c36cb | 2013-06-14 14:57:38 -0400 | [diff] [blame] | 115 | <ImageButton |
| 116 | android:id="@+id/contact_search_button" |
| 117 | android:layout_width="50dp" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 118 | android:layout_height="wrap_content" |
| 119 | android:layout_alignParentBottom="true" |
| 120 | android:layout_alignParentRight="true" |
| 121 | android:layout_below="@+id/menu_top_shadow" |
| 122 | android:background="@color/light" |
alision | 2424b51 | 2013-07-05 10:05:38 -0400 | [diff] [blame] | 123 | android:src="@drawable/ic_btn_search" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 124 | android:gravity="center" > |
alision | 55c36cb | 2013-06-14 14:57:38 -0400 | [diff] [blame] | 125 | </ImageButton> |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 126 | </RelativeLayout> |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 127 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 128 | <FrameLayout |
| 129 | android:id="@+id/contacts_frame" |
| 130 | android:layout_width="match_parent" |
| 131 | android:layout_height="match_parent" |
alision | 2cb9956 | 2013-05-30 17:02:20 -0400 | [diff] [blame] | 132 | android:background="@color/lighter_gray" /> |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 133 | </com.savoirfairelinux.sflphone.views.CustomSlidingDrawer> |
| 134 | </RelativeLayout> |
| 135 | |
| 136 | <FrameLayout |
| 137 | android:id="@+id/left_drawer" |
| 138 | android:layout_width="240dp" |
| 139 | android:layout_height="match_parent" |
| 140 | android:layout_gravity="start" |
| 141 | android:background="@color/darker_gray" |
| 142 | android:choiceMode="singleChoice" |
| 143 | android:divider="@android:color/transparent" |
| 144 | android:dividerHeight="0dp" /> |
| 145 | |
| 146 | </android.support.v4.widget.DrawerLayout> |