mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-03 05:03:04 +00:00
Merge pull request #1296 from nextcloud/profileAvatarPlaceholder
Add placeholder image to avatar for profile view
This commit is contained in:
commit
1070e9f0e7
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user