Files
quik/presentation/src/main/res/layout/avatar_view.xml
T
2020-01-11 21:45:35 -05:00

55 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
~
~ QKSMS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ QKSMS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/avatar"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:parentTag="com.moez.QKSMS.common.widget.AvatarView">
<com.moez.QKSMS.common.widget.QkTextView
android:id="@+id/initial"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:padding="6dp"
android:textAllCaps="true"
app:autoSizeMaxTextSize="22sp"
app:autoSizeTextType="uniform" />
<ImageView
android:id="@+id/icon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:src="@drawable/ic_person_black_24dp"
android:tint="@color/white" />
<ImageView
android:id="@+id/photo"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
tools:background="@color/tools_theme"
tools:src="@tools:sample/avatars" />
</merge>