diff --git a/app/src/main/java/com/teampome/pome/model/response/GetFriends.kt b/app/src/main/java/com/teampome/pome/model/response/GetFriends.kt index 25425f73..eb678b15 100644 --- a/app/src/main/java/com/teampome/pome/model/response/GetFriends.kt +++ b/app/src/main/java/com/teampome/pome/model/response/GetFriends.kt @@ -3,7 +3,7 @@ package com.teampome.pome.model.response //내 친구 목록 조회 Response data class GetFriends( val friendUserId: String, - val friendNickName: String, + var friendNickName: String, val imageKey: String, val friend: Boolean ) diff --git a/app/src/main/java/com/teampome/pome/presentation/friend/FriendGetAdapter.kt b/app/src/main/java/com/teampome/pome/presentation/friend/FriendGetAdapter.kt index a5f90f8e..74fe38da 100644 --- a/app/src/main/java/com/teampome/pome/presentation/friend/FriendGetAdapter.kt +++ b/app/src/main/java/com/teampome/pome/presentation/friend/FriendGetAdapter.kt @@ -35,7 +35,11 @@ class FriendGetAdapter : ListAdapter= 3) { + "${getFriends.friendNickName.substring(0, 3)}..." + } else { + getFriends.friendNickName + } } } diff --git a/app/src/main/res/layout/item_friends_list.xml b/app/src/main/res/layout/item_friends_list.xml index f92bf3c0..b9c1bd20 100644 --- a/app/src/main/res/layout/item_friends_list.xml +++ b/app/src/main/res/layout/item_friends_list.xml @@ -27,7 +27,6 @@ android:id="@+id/friend_all_tv" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@{getFriends.friendNickName}" tools:text="@string/friend_profile_name" android:textColor="@color/grey_5" app:layout_constraintTop_toBottomOf="@+id/friend_list_profile_iv"