generated from NOW-SOPT-ANDROID/now-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
794ae60
commit bc4e974
Showing
4 changed files
with
51 additions
and
46 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
app/src/main/java/com/sopt/now/test/friend/FriendViewHolder.kt
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/sopt/now/test/presentation/home/FriendProfileViewHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.sopt.now.test.presentation.home | ||
|
||
import androidx.recyclerview.widget.RecyclerView | ||
import coil.api.load | ||
import com.sopt.now.databinding.ItemFriendBinding | ||
import com.sopt.now.test.data.Profile | ||
|
||
class FriendProfileViewHolder(private val binding: ItemFriendBinding) : | ||
RecyclerView.ViewHolder(binding.root) { | ||
fun onBind(friendData: Profile) { | ||
binding.run { | ||
ivFriendProfile.load(friendData.userImage) | ||
tvFriendName.text = friendData.userName | ||
tvFriendPhone.text = friendData.userInfo | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/sopt/now/test/presentation/home/UserProfileViewHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.sopt.now.test.presentation.home | ||
|
||
import androidx.recyclerview.widget.RecyclerView | ||
import coil.api.load | ||
import com.sopt.now.R | ||
import com.sopt.now.databinding.ItemUserBinding | ||
import com.sopt.now.test.data.Profile | ||
|
||
class UserProfileViewHolder(private val binding: ItemUserBinding) : | ||
RecyclerView.ViewHolder(binding.root) { | ||
fun onBind(userData: Profile) { | ||
binding.run { | ||
ivMyProfile.load(R.drawable.iv_user_profile) | ||
tvMyName.text = userData.userName | ||
tvMyPhone.text = userData.userInfo | ||
} | ||
} | ||
} |