feat(socials): ratings and progress
This commit is contained in:
parent
e49f0dbf32
commit
3666758e6e
12 changed files with 137 additions and 33 deletions
|
@ -5,5 +5,10 @@ data class User(
|
|||
val name: String,
|
||||
val pfp: String?,
|
||||
val banner: String?,
|
||||
val info: String? = null,
|
||||
// for media
|
||||
val status: String? = null,
|
||||
val score: Float? = null,
|
||||
val progress: Int? = null,
|
||||
val totalEpisodes : Int? = null,
|
||||
val nextAiringEpisode : Int? = null,
|
||||
)
|
|
@ -40,7 +40,7 @@ class UsersAdapter(private val user: ArrayList<User>) : RecyclerView.Adapter<Use
|
|||
setAnimation(b.root.context, b.root)
|
||||
val user = user[position]
|
||||
b.profileUserAvatar.loadImage(user.pfp)
|
||||
blurImage(b.profileBannerImage, user.banner ?: user.pfp)
|
||||
b.profileBannerImage.loadImage(user.banner ?: user.pfp)
|
||||
b.profileUserName.text = user.name
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue