Browse Source

修改IM头像为圆头像

Pq 6 months ago
parent
commit
b57a58f35e

+ 1 - 1
TUIKit/TIMCommon/timcommon/src/main/java/com/tencent/qcloud/tuikit/timcommon/component/impl/GlideEngine.java

@@ -92,7 +92,7 @@ public class GlideEngine {
         Glide.with(TUILogin.getAppContext())
             .load(uri)
             .placeholder(TUIThemeManager.getAttrResId(TUILogin.getAppContext(), R.attr.core_default_user_icon))
-            .apply(new RequestOptions().centerCrop().error(TUIThemeManager.getAttrResId(TUILogin.getAppContext(), R.attr.core_default_user_icon)))
+            .apply(new RequestOptions().centerCrop().circleCrop().error(TUIThemeManager.getAttrResId(TUILogin.getAppContext(), R.attr.core_default_user_icon)))
             .into(imageView);
     }
 

+ 1 - 1
chatModule/src/main/res/layout/tc_activity_chat_group_setting.xml

@@ -29,7 +29,7 @@
                 android:layout_marginTop="@dimen/dp_15"
                 android:background="@color/white">
 
-                <com.cooleshow.base.widgets.QMUIRadiusImageView
+                <de.hdodenhof.circleimageview.CircleImageView
                     android:id="@+id/iv_portrait"
                     app:qmui_corner_radius="5dp"
                     android:layout_width="@dimen/dp_60"

+ 1 - 1
chatModule/src/main/res/layout/tc_group_member_list_item.xml

@@ -7,7 +7,7 @@
     android:background="@color/white"
     android:paddingStart="@dimen/dp_24">
 
-    <com.cooleshow.base.widgets.QMUIRadiusImageView
+    <de.hdodenhof.circleimageview.CircleImageView
         android:id="@+id/iv_icon"
         android:layout_width="@dimen/dp_44"
         android:layout_height="@dimen/dp_44"

+ 1 - 1
chatModule/src/main/res/layout/tc_item_contact_list_layout.xml

@@ -7,7 +7,7 @@
     android:background="@color/white"
     android:paddingStart="@dimen/dp_14">
 
-    <com.cooleshow.base.widgets.QMUIRadiusImageView
+    <de.hdodenhof.circleimageview.CircleImageView
         android:id="@+id/iv_icon"
         android:layout_marginTop="12dp"
         android:layout_marginBottom="12dp"

+ 1 - 1
chatModule/src/main/res/layout/tc_item_contact_person_list_layout.xml

@@ -7,7 +7,7 @@
     android:background="@color/white"
     android:paddingStart="@dimen/dp_14">
 
-    <com.cooleshow.base.widgets.QMUIRadiusImageView
+    <de.hdodenhof.circleimageview.CircleImageView
         android:id="@+id/iv_icon"
         android:layout_marginTop="12dp"
         android:layout_marginBottom="12dp"

+ 1 - 1
chatModule/src/main/res/layout/tc_item_group_setting_member_list_layout.xml

@@ -7,7 +7,7 @@
     android:gravity="center"
     android:orientation="vertical">
 
-    <com.cooleshow.base.widgets.QMUIRadiusImageView
+    <de.hdodenhof.circleimageview.CircleImageView
         android:id="@+id/iv_icon"
         android:layout_width="@dimen/dp_45"
         android:layout_height="@dimen/dp_45"

+ 1 - 1
chatModule/src/main/res/layout/tc_layout_join_group_item.xml

@@ -24,7 +24,7 @@
             app:layout_constraintLeft_toLeftOf="parent"
             app:layout_constraintTop_toTopOf="parent" />
 
-        <com.cooleshow.base.widgets.QMUIRadiusImageView
+        <de.hdodenhof.circleimageview.CircleImageView
             android:id="@+id/im_header"
             android:layout_width="@dimen/dp_44"
             android:layout_height="@dimen/dp_44"

+ 1 - 1
chatModule/src/main/res/layout/tc_notice_list_item.xml

@@ -8,7 +8,7 @@
     android:layout_marginEnd="13dp"
     android:background="@drawable/shape_10dp_white">
 
-    <com.cooleshow.base.widgets.QMUIRadiusImageView
+    <de.hdodenhof.circleimageview.CircleImageView
         android:id="@+id/iv_portrait"
         android:layout_width="@dimen/dp_48"
         android:layout_height="@dimen/dp_48"