kufear
09/20/2017, 11:31 AMjw
09/20/2017, 2:35 PMRicardo
09/20/2017, 3:04 PMkevinmost
09/20/2017, 3:07 PMinternal lateinit var
syntax they frequently see in Dagger 2, to which I say... you should use constructor injection anyway 🙂Paul Woitaschek
09/21/2017, 8:23 AMjoshdaquino
09/22/2017, 3:03 AMthemarketka
09/22/2017, 7:55 PMra1nmak3r
09/22/2017, 9:55 PMdata class
have problem with huge data? I mean, I'm using a data class
in a RecyclerView
and this class has some fields (all of them are primitive types) and when applying some animations when the user click in one of the items in the list these animations does not works properly.
But if I use a class
instead of a data class
, everything works fine and all animations are applied.Shahjahan
09/24/2017, 2:11 PMjw
09/24/2017, 2:12 PMjw
09/24/2017, 3:52 PMJorge Castillo
09/24/2017, 4:02 PMJorge Castillo
09/24/2017, 4:02 PMRegan Russell
09/24/2017, 10:37 PMmyanmarking
09/25/2017, 10:11 AM_
not valid package name anymore?Ashok
09/25/2017, 2:33 PMcodeslubber
09/25/2017, 4:57 PMkz
09/26/2017, 2:49 PMmartin.petrulak
09/27/2017, 9:58 AMlistOf("one","two","three").sortedWith(compareBy<String> { it.length }.thenByDescending { it.first() }.thenBy { it.last() })
Edwin Ramirez Ventura
09/27/2017, 1:38 PMAshok
09/27/2017, 3:29 PMval adapter = ShopListAdapter(this@Fragment.context) {
val selectedItem = adapter.selected
compareItems(selectedItem, it)
}
class ShopListAdapter(context:Context, onSelect:(String) ->Unit) : RecyclerView.Adapter<VH> {
…..
view.onClick…(…) {
onSelect(view.tag)
}
...
}
Ashok
09/27/2017, 3:30 PMmiha-x64
09/27/2017, 5:12 PMclass ParcelSomething(val something: Something) : Parcelable {...
, where Something
is not parcelable itself?budioktaviyan
09/27/2017, 8:10 PMsodiqoladeni
09/28/2017, 7:12 AMEdwin Ramirez Ventura
09/28/2017, 2:05 PMEdwin Ramirez Ventura
09/28/2017, 6:19 PMlpirro
09/29/2017, 9:00 AMmugur
09/29/2017, 7:47 PMblakelee
09/30/2017, 8:14 PMblakelee
09/30/2017, 8:14 PMagrosner
09/30/2017, 11:07 PMblakelee
10/01/2017, 5:52 AM