add OnItemClickListener
This commit is contained in:
@ -7,7 +7,6 @@ import android.view.ViewGroup
|
||||
import android.widget.ArrayAdapter
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.bumptech.glide.Glide
|
||||
import org.mosad.teapod.R
|
||||
|
||||
@ -20,7 +19,7 @@ class CustomAdapter(context: Context, private val media: ArrayList<GUIMedia>) :
|
||||
val imagePoster = view.findViewById<ImageView>(R.id.image_poster)
|
||||
|
||||
textTitle.text = media[position].title
|
||||
Glide.with(context).load(media[position].imageLink).into(imagePoster)
|
||||
Glide.with(context).load(media[position].posterLink).into(imagePoster)
|
||||
|
||||
return view
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
package org.mosad.teapod.util
|
||||
|
||||
data class GUIMedia(val title: String, val imageLink: String, val shortDesc : String, val link: String)
|
||||
data class GUIMedia(val title: String, val posterLink: String, val shortDesc : String, val link: String)
|
Reference in New Issue
Block a user