2016-04-04 19:09:24 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
2016-09-21 16:26:19 +03:00
|
|
|
Nextcloud Android client application
|
2016-03-23 17:47:06 +03:00
|
|
|
|
2016-09-21 16:26:19 +03:00
|
|
|
Copyright (C) 2016 Andy Scherzinger
|
|
|
|
Copyright (C) 2016 Nextcloud.
|
2016-03-23 17:47:06 +03:00
|
|
|
|
2016-09-21 16:26:19 +03:00
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 3 of the License, or any later version.
|
2016-03-23 17:47:06 +03:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2016-10-26 17:05:46 +03:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-09-21 16:26:19 +03:00
|
|
|
GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
2016-03-23 17:47:06 +03:00
|
|
|
|
2016-09-21 16:26:19 +03:00
|
|
|
You should have received a copy of the GNU Affero General Public
|
2016-10-26 17:05:46 +03:00
|
|
|
License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2016-03-23 17:47:06 +03:00
|
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-03-23 21:58:51 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/nav_drawer_header_height"
|
2016-08-14 23:32:41 +03:00
|
|
|
android:background="@drawable/background"
|
|
|
|
android:fitsSystemWindows="true">
|
2016-03-23 17:47:06 +03:00
|
|
|
|
2016-04-04 19:09:24 +03:00
|
|
|
<RelativeLayout
|
2016-03-23 22:56:22 +03:00
|
|
|
android:id="@+id/drawer_active_user"
|
2016-03-23 21:58:51 +03:00
|
|
|
android:layout_width="match_parent"
|
2016-03-23 17:47:06 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
2016-08-14 23:32:41 +03:00
|
|
|
android:padding="@dimen/standard_padding">
|
2016-03-23 21:58:51 +03:00
|
|
|
|
2016-04-05 17:28:56 +03:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/drawer_user_avatars"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:layout_marginBottom="@dimen/standard_half_margin">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_current_account"
|
|
|
|
android:layout_width="@dimen/nav_drawer_header_avatar"
|
|
|
|
android:layout_height="@dimen/nav_drawer_header_avatar"
|
|
|
|
android:src="@drawable/ic_account_circle"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_account_middle"
|
|
|
|
android:layout_width="@dimen/nav_drawer_header_avatar_other_accounts_size"
|
|
|
|
android:layout_height="@dimen/nav_drawer_header_avatar_other_accounts_size"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_marginEnd="@dimen/nav_drawer_header_avatar_second_account_margin"
|
|
|
|
android:layout_marginRight="@dimen/nav_drawer_header_avatar_second_account_margin"
|
|
|
|
android:src="@drawable/ic_account_circle"
|
|
|
|
android:onClick="onAccountDrawerClick"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_account_end"
|
|
|
|
android:layout_width="@dimen/nav_drawer_header_avatar_other_accounts_size"
|
|
|
|
android:layout_height="@dimen/nav_drawer_header_avatar_other_accounts_size"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:src="@drawable/ic_account_circle"
|
|
|
|
android:onClick="onAccountDrawerClick"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2016-03-23 21:58:51 +03:00
|
|
|
|
|
|
|
<LinearLayout
|
2016-04-04 19:09:24 +03:00
|
|
|
android:layout_width="match_parent"
|
2016-03-23 21:58:51 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-05 17:28:56 +03:00
|
|
|
android:layout_below="@+id/drawer_user_avatars"
|
2016-04-04 19:09:24 +03:00
|
|
|
>
|
2016-03-23 21:58:51 +03:00
|
|
|
|
2016-04-04 19:09:24 +03:00
|
|
|
<LinearLayout
|
2016-10-07 02:52:13 +03:00
|
|
|
android:layout_width="@dimen/zero"
|
2016-03-23 21:58:51 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-04 19:09:24 +03:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingRight="@dimen/standard_half_padding">
|
2016-03-23 21:58:51 +03:00
|
|
|
|
2016-04-04 19:09:24 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/drawer_username"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:shadowColor="@color/black"
|
|
|
|
android:shadowDx="0.5"
|
|
|
|
android:shadowDy="0"
|
|
|
|
android:shadowRadius="2"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/app_name"
|
|
|
|
android:textColor="@android:color/white"
|
2016-10-07 03:26:12 +03:00
|
|
|
android:textSize="@dimen/drawer_header_text"
|
2016-04-04 19:09:24 +03:00
|
|
|
android:textStyle="bold"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/drawer_username_full"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:shadowColor="@color/black"
|
|
|
|
android:shadowDx="0.5"
|
|
|
|
android:shadowDy="0"
|
|
|
|
android:shadowRadius="2"
|
|
|
|
android:text="@string/app_name"
|
|
|
|
android:textColor="@android:color/white"
|
2016-10-07 03:26:12 +03:00
|
|
|
android:textSize="@dimen/drawer_header_subtext"/>
|
2016-04-04 19:09:24 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/drawer_account_chooser_toogle"
|
|
|
|
android:layout_width="wrap_content"
|
2016-03-23 21:58:51 +03:00
|
|
|
android:layout_height="wrap_content"
|
2016-04-04 19:09:24 +03:00
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:contentDescription="@string/drawer_manage_accounts"
|
|
|
|
android:src="@drawable/ic_down"/>
|
2016-03-23 21:58:51 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-04-04 19:09:24 +03:00
|
|
|
</RelativeLayout>
|
2016-03-23 21:58:51 +03:00
|
|
|
|
2016-03-23 17:47:06 +03:00
|
|
|
</LinearLayout>
|