|
@@ -1,10 +1,12 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
+
|
|
|
<!--
|
|
|
Nextcloud Android client application
|
|
|
|
|
|
Copyright (C) 2016 Andy Scherzinger
|
|
|
Copyright (C) 2016 Nextcloud
|
|
|
Copyright (C) 2016 ownCloud
|
|
|
+ Copyright (C) 2020 Infomaniak Network SA
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -19,34 +21,33 @@
|
|
|
You should have received a copy of the GNU Affero General Public
|
|
|
License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
-->
|
|
|
-<RelativeLayout
|
|
|
- xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+
|
|
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
- android:id="@+id/user_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/account_item_layout_height"
|
|
|
+ android:background="?attr/selectableItemBackground"
|
|
|
android:orientation="horizontal"
|
|
|
- android:foreground="?attr/selectableItemBackground"
|
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
|
<FrameLayout
|
|
|
android:id="@+id/avatar_container"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_alignParentStart="true">
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
+ android:layout_centerVertical="true">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/user_icon"
|
|
|
android:layout_width="@dimen/user_icon_size"
|
|
|
android:layout_height="@dimen/user_icon_size"
|
|
|
android:layout_gravity="top|start"
|
|
|
- android:layout_marginBottom="@dimen/account_item_layout_user_image_margin"
|
|
|
android:layout_marginStart="@dimen/account_item_layout_user_image_left_start_margin"
|
|
|
- android:layout_marginEnd="@dimen/account_item_layout_user_image_margin"
|
|
|
android:layout_marginTop="@dimen/account_item_layout_user_image_margin"
|
|
|
- android:src="@drawable/folder"
|
|
|
- android:contentDescription="@string/avatar"/>
|
|
|
+ android:layout_marginEnd="@dimen/account_item_layout_user_image_margin"
|
|
|
+ android:layout_marginBottom="@dimen/account_item_layout_user_image_margin"
|
|
|
+ android:contentDescription="@string/avatar"
|
|
|
+ android:src="@drawable/folder" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/ticker"
|
|
@@ -54,60 +55,60 @@
|
|
|
android:layout_height="18dp"
|
|
|
android:layout_gravity="bottom|end"
|
|
|
android:background="@drawable/round_bgnd"
|
|
|
- android:src="@drawable/account_circle_white"
|
|
|
- android:contentDescription="@string/active_user"/>
|
|
|
+ android:contentDescription="@string/active_user"
|
|
|
+ android:src="@drawable/account_circle_white" />
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerInParent="true"
|
|
|
+ android:layout_marginEnd="25dp"
|
|
|
+ android:layout_toEndOf="@id/avatar_container"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingStart="3dp"
|
|
|
+ android:paddingEnd="@dimen/zero">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/user_name"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_centerInParent="true"
|
|
|
- android:layout_toEndOf="@id/avatar_container"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingEnd="@dimen/zero"
|
|
|
- android:layout_marginEnd="25dp"
|
|
|
- android:paddingStart="3dp">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/user_name"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="@dimen/standard_double_margin"
|
|
|
- android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
- android:layout_marginTop="@dimen/standard_quarter_margin"
|
|
|
- android:ellipsize="end"
|
|
|
- android:gravity="bottom"
|
|
|
- android:maxLines="1"
|
|
|
- android:text="@string/placeholder_filename"
|
|
|
- android:textAppearance="?android:attr/textAppearanceListItem"/>
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/account"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginBottom="@dimen/standard_quarter_margin"
|
|
|
- android:layout_marginEnd="@dimen/standard_double_margin"
|
|
|
- android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
- android:ellipsize="end"
|
|
|
- android:gravity="top"
|
|
|
- android:maxLines="1"
|
|
|
- android:text="@string/placeholder_sentence"
|
|
|
- android:textColor="?android:attr/textColorSecondary"/>
|
|
|
-
|
|
|
- </LinearLayout>
|
|
|
+ android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
+ android:layout_marginTop="@dimen/standard_quarter_margin"
|
|
|
+ android:layout_marginEnd="@dimen/standard_double_margin"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="bottom"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:text="@string/placeholder_filename"
|
|
|
+ android:textAppearance="?android:attr/textAppearanceListItem" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/account_menu"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:clickable="true"
|
|
|
- android:contentDescription="@string/overflow_menu"
|
|
|
- android:focusable="true"
|
|
|
- android:paddingEnd="@dimen/alternate_padding"
|
|
|
- android:paddingStart="@dimen/standard_half_padding"
|
|
|
- android:src="@drawable/ic_dots_vertical"/>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/account"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/standard_half_margin"
|
|
|
+ android:layout_marginEnd="@dimen/standard_double_margin"
|
|
|
+ android:layout_marginBottom="@dimen/standard_quarter_margin"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="top"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:text="@string/placeholder_sentence"
|
|
|
+ android:textColor="?android:attr/textColorSecondary" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/account_menu"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:clickable="true"
|
|
|
+ android:contentDescription="@string/overflow_menu"
|
|
|
+ android:focusable="true"
|
|
|
+ android:paddingStart="@dimen/standard_half_padding"
|
|
|
+ android:paddingEnd="@dimen/alternate_padding"
|
|
|
+ android:src="@drawable/ic_dots_vertical" />
|
|
|
|
|
|
</RelativeLayout>
|