From 3e13f3f5fe89b4772339e40cf5d105b1cd3da214 Mon Sep 17 00:00:00 2001 From: SsongSik Date: Wed, 17 May 2023 22:05:33 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20:=20#15=20=EC=B9=9C=EA=B5=AC=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EC=9D=B4=EB=A6=84=20=EA=B8=B8=EC=9D=B4=20?= =?UTF-8?q?=EB=B6=84=EA=B8=B0=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/teampome/pome/model/response/GetFriends.kt | 2 +- .../teampome/pome/presentation/friend/FriendGetAdapter.kt | 6 +++++- app/src/main/res/layout/item_friends_list.xml | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) 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"