https://kotlinlang.org logo
#android
Title
# android
a

amanda.hinchman-dominguez

04/19/2018, 3:08 AM
thanks!
a

adam-mcneilly

04/19/2018, 3:09 AM
No problem! I'll be up a little longer, feel free to DM me with any general Android questions that might not be Kotlin specific.
🙄 4
a

amanda.hinchman-dominguez

04/19/2018, 3:09 AM
Appreciate it!
g

gildor

04/19/2018, 3:12 AM
also you can replace explicit constuctor with main constrructor:
Copy code
class ImageGridAdapter(
   context: Context,
   private val resources: Array<Resources>
) : ArrayAdapter<Resources>(context, R.layout.art_piece_entry, resources) {
   private val inflater = LayoutInflater.from(context)
}
👍 1
a

amanda.hinchman-dominguez

04/19/2018, 4:01 AM
Will do! Especially since I don't need to worry about overriding the context now.
2 Views