create separate avatarviews for showing single or multiple contacts

This commit is contained in:
Moez Bhatti
2017-08-29 12:01:09 -07:00
parent aca0d14225
commit 13ecb946c8
11 changed files with 212 additions and 49 deletions
+24
View File
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<merge android:id="@+id/avatar"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/textSecondary"
android:orientation="vertical"
tools:parentTag="com.moez.QKSMS.ui.view.AvatarView">
<ImageView
android:id="@+id/photo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<TextView
android:id="@+id/initial"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
tools:text="M" />
</merge>