Skip to content

Commit

Permalink
#4 in progress 55%
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmin1012 committed Jun 6, 2020
1 parent 593004c commit 851d0f2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 60 deletions.
72 changes: 12 additions & 60 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions app/src/main/java/org/techtown/homeing/data/GalData.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.techtown.homeing.data

data class GalData(
val img : String
)
17 changes: 17 additions & 0 deletions app/src/main/java/org/techtown/homeing/viewholder/GalVH.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.techtown.homeing.viewholder

import android.view.View
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.search_contents_item.view.*
import org.techtown.homeing.R
import org.techtown.homeing.data.GalData

class GalVH (view : View) : RecyclerView.ViewHolder(view){

val img = view.findViewById<ImageView>(R.id.contents_img)
fun onBind(data : GalData){
Glide.with(itemView).load(data.img).into(img)
}
}

0 comments on commit 851d0f2

Please sign in to comment.