Marcelo
11/27/2018, 10:23 PMClaudiuB
11/28/2018, 1:03 PMgeeksweep
11/28/2018, 7:46 PMspierce7
11/28/2018, 9:07 PMitnoles
11/28/2018, 9:11 PMdewildte
11/28/2018, 9:15 PMleosan
11/28/2018, 11:12 PMLayoutContainer
here in order get cached synthetic views? I Can't find a way to work 😕
LayoutContainer requires the containerView
initialized at the class initialization but there's no way I can get it on the delegate initialization, only on the bindView
class HeadlineDelegateAdapter @Inject constructor() : BaseDelegateAdapter {
override fun getLayoutRes(): Int = R.layout.item_dashboard_transaction_headline
override fun bindView(itemView: View, item: BaseViewType, viewHolder: RecyclerView.ViewHolder) {
if (item is Headline) {
tvHeadline.text = item.description
tvSubtotal.text = item.subtotal
}
}
}
Paul Woitaschek
11/29/2018, 6:59 AMPaul Woitaschek
11/29/2018, 3:27 PMdpk
11/29/2018, 4:29 PMButton
and TextView
), is there a built-in way to tell KAE to cast views to a specific base class when reading from its cache? for now i’m stepping out of KAE and just using findViewById<Base>(R.id.whatever).property = blah
. i saw some discussion of customizing the cache but haven’t figured out where the code for that is.jw
11/29/2018, 8:00 PMalexsullivan114
11/29/2018, 9:13 PMlukaville
11/30/2018, 5:23 PM@Parcelize
Hank
12/01/2018, 7:47 AMTolriq
12/02/2018, 3:36 PMankit.sharma
12/02/2018, 9:17 PMRetrofitApi.kt
interface, define a companion object which returns a service object.
2. Define a separate class and instantiate the object in init {}
.
Is there a recommended way of doing things on android and what are the pros and cons of each approach?
Thanks!mingkangpan
12/02/2018, 10:40 PMcompileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
our android app supports min android SDK 21thuytrinh
12/03/2018, 10:52 AMjurajsolarml
12/03/2018, 1:50 PMjurajsolarml
12/04/2018, 9:32 AMavezraj
12/04/2018, 9:45 AMÖmer Ateş
12/05/2018, 9:20 AMdvlwj
12/05/2018, 9:33 AMdvlwj
12/05/2018, 9:33 AMgsala
12/05/2018, 10:22 AMjurajsolarml
12/05/2018, 10:23 AMCamilleBC
12/05/2018, 10:33 AMonResponse
? Should I:
* pass a callback and send the data back through it?
* use the https://github.com/gildor/kotlin-coroutines-retrofit library?
* pass a LiveData as parameter to the call
function and post the value to it?filiplamparski
12/05/2018, 6:23 PMJakub
12/06/2018, 10:15 AMjurajsolarml
12/06/2018, 12:14 PMjurajsolarml
12/06/2018, 12:14 PMgildor
12/06/2018, 1:16 PMjurajsolarml
12/06/2018, 1:30 PMgildor
12/06/2018, 1:46 PMjurajsolarml
12/06/2018, 1:47 PMgildor
12/06/2018, 1:47 PMjurajsolarml
12/06/2018, 1:51 PMgildor
12/06/2018, 3:23 PMjurajsolarml
12/06/2018, 3:56 PMgildor
12/06/2018, 4:05 PMjurajsolarml
12/06/2018, 4:30 PMjurajsolarml
12/06/2018, 6:54 PM