Updated self avatar with trusted info

This commit is contained in:
Sylvain Berfini 2023-08-08 17:23:32 +02:00
parent 2565d8155d
commit 4cc2a11cc5
2 changed files with 16 additions and 21 deletions

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="1A051FDEE005XG" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-08-08T14:19:41.977381455Z" />
</component>
</project>

View file

@ -37,13 +37,25 @@
app:constraint_referenced_ids="title, search"
app:barrierDirection="bottom" />
<ImageView
<io.getstream.avatarview.AvatarView
android:onClick="@{onAvatarClickListener}"
android:id="@+id/avatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginStart="15dp"
android:src="@drawable/contact_avatar"
app:avatarViewBorderColor="@color/trusted_blue"
app:avatarViewBorderWidth="2dp"
app:avatarViewIndicatorSizeCriteria="4"
app:avatarViewIndicatorEnabled="true"
app:avatarViewIndicatorDrawable="@drawable/trusted"
app:avatarViewIndicatorPosition="bottomLeft"
app:avatarViewInitialsBackgroundColor="@color/blue_outgoing_message"
app:avatarViewInitialsTextColor="@color/gray_9"
app:avatarViewInitialsTextSize="21sp"
app:avatarViewInitialsTextStyle="bold"
app:avatarViewPlaceholder="@drawable/contact_avatar"
app:avatarViewShape="circle"
app:avatarViewInitials="SB"
app:layout_constraintBottom_toBottomOf="@id/title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/title" />