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" |
Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 34 | xmlns:app="http://schemas.android.com/apk/res/org.sflphone" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 35 | android:id="@+id/drawer_layout" |
Alexandre Savard | bf744f7 | 2012-09-12 10:31:40 -0400 | [diff] [blame] | 36 | android:layout_width="match_parent" |
Alexandre Lision | f1850c0 | 2013-09-23 14:19:34 -0400 | [diff] [blame] | 37 | android:layout_height="match_parent" > |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 38 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 39 | <RelativeLayout |
| 40 | xmlns:android="http://schemas.android.com/apk/res/android" |
Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 41 | xmlns:app="http://schemas.android.com/apk/res/org.sflphone" |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 42 | android:layout_width="match_parent" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 43 | android:layout_height="match_parent" |
| 44 | android:orientation="vertical" > |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 45 | |
Alexandre Lision | e5b6602 | 2013-10-30 11:34:15 -0400 | [diff] [blame] | 46 | <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" |
Alexandre Lision | dc6bdcc | 2013-11-01 11:42:08 -0400 | [diff] [blame] | 51 | android:layout_marginTop="?android:attr/actionBarSize" |
Alexandre Lision | e5b6602 | 2013-10-30 11:34:15 -0400 | [diff] [blame] | 52 | android:background="@color/sfl_blue_0" |
Alexandre Lision | dc6bdcc | 2013-11-01 11:42:08 -0400 | [diff] [blame] | 53 | app:indicatorColor="@color/sfl_light_blue" |
| 54 | app:underlineColor="@color/sfl_light_blue" /> |
Alexandre Lision | e5b6602 | 2013-10-30 11:34:15 -0400 | [diff] [blame] | 55 | |
Alexandre Lision | f1850c0 | 2013-09-23 14:19:34 -0400 | [diff] [blame] | 56 | <android.support.v4.view.ViewPager |
| 57 | android:id="@+id/pager" |
Alexandre Savard | def3bfa | 2012-09-12 16:20:06 -0400 | [diff] [blame] | 58 | android:layout_width="match_parent" |
Alexandre Lision | f1850c0 | 2013-09-23 14:19:34 -0400 | [diff] [blame] | 59 | android:layout_height="match_parent" |
Alexandre Lision | e5b6602 | 2013-10-30 11:34:15 -0400 | [diff] [blame] | 60 | android:layout_below="@+id/pts_main" |
Alexandre Lision | f1850c0 | 2013-09-23 14:19:34 -0400 | [diff] [blame] | 61 | android:background="#000000" |
Alexandre Lision | c87763a | 2013-11-01 12:53:38 -0400 | [diff] [blame] | 62 | android:paddingBottom="@dimen/contact_drawer_handle_height" /> |
Alexandre Lision | dc6bdcc | 2013-11-01 11:42:08 -0400 | [diff] [blame] | 63 | |
Alexandre Lision | c87763a | 2013-11-01 12:53:38 -0400 | [diff] [blame] | 64 | <ImageView |
| 65 | android:id="@+id/overall_shadow" |
| 66 | android:layout_width="match_parent" |
| 67 | android:layout_height="match_parent" |
| 68 | android:alpha="0" |
| 69 | android:background="@color/black" /> |
Alexandre Savard | cb66fa4 | 2012-10-26 10:06:16 -0400 | [diff] [blame] | 70 | |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame] | 71 | <!-- <ImageView --> |
| 72 | <!-- android:id="@+id/handle_circle" --> |
| 73 | <!-- android:layout_width="80dp" --> |
| 74 | <!-- android:layout_height="80dp" --> |
| 75 | <!-- android:layout_alignParentBottom="true" --> |
| 76 | <!-- android:layout_centerHorizontal="true" --> |
| 77 | <!-- android:gravity="center" --> |
| 78 | <!-- android:background="@drawable/drawer_disc_handle" --> |
| 79 | <!-- android:textStyle="bold" /> --> |
| 80 | |
Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 81 | <org.sflphone.views.CustomSlidingDrawer |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 82 | android:id="@+id/custom_sliding_drawer" |
| 83 | android:layout_width="match_parent" |
| 84 | android:layout_height="wrap_content" |
| 85 | android:layout_alignParentBottom="true" |
| 86 | android:orientation="vertical" |
Alexandre Lision | a764c68 | 2013-09-09 10:02:07 -0400 | [diff] [blame] | 87 | app:animateOnClick="true" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 88 | app:content="@+id/contacts_frame" |
| 89 | app:handle="@+id/slider_button" > |
| 90 | |
| 91 | <RelativeLayout |
| 92 | android:id="@+id/slider_button" |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 93 | android:layout_width="match_parent" |
Alexandre Lision | dc6bdcc | 2013-11-01 11:42:08 -0400 | [diff] [blame] | 94 | android:layout_height="@dimen/contact_drawer_handle_height_with_shadow" > |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 95 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 96 | <ImageView |
| 97 | android:id="@+id/menu_top_shadow" |
| 98 | android:layout_width="match_parent" |
| 99 | android:layout_height="4dp" |
| 100 | android:layout_alignParentLeft="true" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 101 | android:layout_alignParentTop="true" |
| 102 | android:src="@drawable/defaultshadowtop" /> |
Emeric Vigier | ea2f3a9 | 2012-09-17 10:26:02 -0400 | [diff] [blame] | 103 | |
Alexandre Lision | 5c81c5b | 2013-10-02 17:33:32 -0400 | [diff] [blame] | 104 | <ImageView |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 105 | android:id="@+id/handle_title" |
| 106 | android:layout_width="match_parent" |
| 107 | android:layout_height="match_parent" |
| 108 | android:layout_alignParentBottom="true" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame] | 109 | android:layout_alignParentRight="true" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 110 | android:layout_below="@+id/menu_top_shadow" |
| 111 | android:layout_centerInParent="true" |
Alexandre Lision | 5c81c5b | 2013-10-02 17:33:32 -0400 | [diff] [blame] | 112 | android:background="@color/sfl_dark_blue" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 113 | android:gravity="center" |
| 114 | android:singleLine="true" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame] | 115 | android:src="@drawable/ic_action_group" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 116 | android:textStyle="bold" /> |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 117 | |
alision | 55c36cb | 2013-06-14 14:57:38 -0400 | [diff] [blame] | 118 | <ImageButton |
| 119 | android:id="@+id/contact_search_button" |
Alexandre Lision | 5c81c5b | 2013-10-02 17:33:32 -0400 | [diff] [blame] | 120 | android:layout_width="wrap_content" |
alision | d45da71 | 2013-05-30 09:18:49 -0400 | [diff] [blame] | 121 | android:layout_height="wrap_content" |
| 122 | android:layout_alignParentBottom="true" |
| 123 | android:layout_alignParentRight="true" |
| 124 | android:layout_below="@+id/menu_top_shadow" |
Alexandre Lision | 5c81c5b | 2013-10-02 17:33:32 -0400 | [diff] [blame] | 125 | android:background="@color/sfl_dark_blue" |
Alexandre Lision | f41a3a8 | 2013-09-05 17:15:15 -0400 | [diff] [blame] | 126 | android:gravity="center" |
| 127 | android:src="@drawable/ic_btn_search" > |
alision | 55c36cb | 2013-06-14 14:57:38 -0400 | [diff] [blame] | 128 | </ImageButton> |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 129 | </RelativeLayout> |
alision | 7297bdb | 2013-05-21 11:56:55 -0400 | [diff] [blame] | 130 | |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 131 | <FrameLayout |
| 132 | android:id="@+id/contacts_frame" |
| 133 | android:layout_width="match_parent" |
| 134 | android:layout_height="match_parent" |
Alexandre Lision | 8b9d8e8 | 2013-10-04 09:21:27 -0400 | [diff] [blame] | 135 | android:background="@color/sfl_dark_blue" /> |
Alexandre Lision | 064e1e0 | 2013-10-01 16:18:42 -0400 | [diff] [blame] | 136 | </org.sflphone.views.CustomSlidingDrawer> |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 137 | </RelativeLayout> |
| 138 | |
| 139 | <FrameLayout |
| 140 | android:id="@+id/left_drawer" |
Alexandre Lision | 8a1bab8 | 2013-10-24 10:06:51 -0400 | [diff] [blame] | 141 | android:layout_width="300dp" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 142 | android:layout_height="match_parent" |
| 143 | android:layout_gravity="start" |
alision | 9f7a6ec | 2013-05-24 16:26:26 -0400 | [diff] [blame] | 144 | android:choiceMode="singleChoice" |
| 145 | android:divider="@android:color/transparent" |
| 146 | android:dividerHeight="0dp" /> |
| 147 | |
| 148 | </android.support.v4.widget.DrawerLayout> |