Fixed call paused layout avatar white background
This commit is contained in:
parent
c3dea95a50
commit
6600b92d1e
4 changed files with 22 additions and 13 deletions
5
app/src/main/res/drawable/contact_avatar_bg.xml
Normal file
5
app/src/main/res/drawable/contact_avatar_bg.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||||
|
<solid android:color="?attr/backgroundColor"/>
|
||||||
|
<size android:width="@dimen/contact_avatar_size" android:height="@dimen/contact_avatar_size"/>
|
||||||
|
</shape>
|
|
@ -36,7 +36,7 @@
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center_vertical|left"
|
android:gravity="center_vertical|left"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:paddingLeft="20dp"
|
android:paddingLeft="10dp"
|
||||||
android:paddingRight="10dp" />
|
android:paddingRight="10dp" />
|
||||||
|
|
||||||
<Chronometer
|
<Chronometer
|
||||||
|
|
|
@ -31,15 +31,18 @@
|
||||||
<variable
|
<variable
|
||||||
name="borderVisibility"
|
name="borderVisibility"
|
||||||
type="Boolean" />
|
type="Boolean" />
|
||||||
|
<variable
|
||||||
|
name="backgroundColor"
|
||||||
|
type="Integer" />
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="45dp"
|
android:layout_width="45dp"
|
||||||
android:layout_height="35dp">
|
android:layout_height="@dimen/contact_avatar_size">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="35dp"
|
android:layout_width="@dimen/contact_avatar_size"
|
||||||
android:layout_height="35dp"
|
android:layout_height="@dimen/contact_avatar_size"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
|
@ -47,8 +50,8 @@
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:visibility="@{generatedAvatarVisibility && !groupChatAvatarVisibility ? View.VISIBLE : View.GONE}"
|
android:visibility="@{generatedAvatarVisibility && !groupChatAvatarVisibility ? View.VISIBLE : View.GONE}"
|
||||||
android:layout_width="35dp"
|
android:layout_width="@dimen/contact_avatar_size"
|
||||||
android:layout_height="35dp"
|
android:layout_height="@dimen/contact_avatar_size"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
|
@ -60,26 +63,26 @@
|
||||||
android:textColor="?attr/secondaryTextColor"
|
android:textColor="?attr/secondaryTextColor"
|
||||||
android:textSize="21sp"
|
android:textSize="21sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:layout_width="35dp"
|
android:layout_width="@dimen/contact_avatar_size"
|
||||||
android:layout_height="35dp"
|
android:layout_height="@dimen/contact_avatar_size"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:ellipsize="none" />
|
android:ellipsize="none" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="35dp"
|
android:layout_width="@dimen/contact_avatar_size"
|
||||||
android:layout_height="35dp"
|
android:layout_height="@dimen/contact_avatar_size"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:background="?attr/backgroundColor"
|
android:background="@drawable/contact_avatar_bg"
|
||||||
app:glideAvatar="@{imagePath}" />
|
app:glideAvatar="@{imagePath}" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:visibility="@{borderVisibility ? View.VISIBLE : View.GONE, default=gone}"
|
android:visibility="@{borderVisibility ? View.VISIBLE : View.GONE, default=gone}"
|
||||||
android:layout_width="35dp"
|
android:layout_width="@dimen/contact_avatar_size"
|
||||||
android:layout_height="35dp"
|
android:layout_height="@dimen/contact_avatar_size"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
|
|
|
@ -11,4 +11,5 @@
|
||||||
<dimen name="status_fragment_size">40dp</dimen>
|
<dimen name="status_fragment_size">40dp</dimen>
|
||||||
<dimen name="tabs_fragment_selector_size">5dp</dimen>
|
<dimen name="tabs_fragment_selector_size">5dp</dimen>
|
||||||
<dimen name="tabs_fragment_unread_count_bounce_offset">5dp</dimen>
|
<dimen name="tabs_fragment_unread_count_bounce_offset">5dp</dimen>
|
||||||
|
<dimen name="contact_avatar_size">35dp</dimen>
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue