add placeholder image to avatar for profile view

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-27 11:03:42 +02:00
parent 04e418ddfd
commit a47bd5564e
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!-- Nextcloud Android client application <?xml version="1.0" encoding="utf-8"?>
<!-- Nextcloud Android client application
Copyright (C) 2017-2021 Andy Scherzinger Copyright (C) 2017-2021 Andy Scherzinger
Copyright (C) 2017 Nextcloud Copyright (C) 2017 Nextcloud
@ -18,6 +19,7 @@
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -34,11 +36,12 @@
android:layout_width="@dimen/avatar_size_big" android:layout_width="@dimen/avatar_size_big"
android:layout_height="@dimen/avatar_size_big" android:layout_height="@dimen/avatar_size_big"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_marginStart="16dp" android:layout_marginTop="@dimen/standard_margin"
android:layout_marginTop="16dp" android:src="@drawable/account_circle_96dp"
android:transitionName="userAvatar.transitionTag" android:transitionName="userAvatar.transitionTag"
app:roundAsCircle="true" app:roundAsCircle="true"
tools:src="@tools:sample/avatars[0]" /> fresco:failureImage="@drawable/account_circle_96dp"
fresco:placeholderImage="@drawable/account_circle_96dp" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji.widget.EmojiTextView
android:id="@+id/userinfo_fullName" android:id="@+id/userinfo_fullName"