Tushar
06/19/2018, 9:47 AMTim Castelijns
06/19/2018, 9:51 AMpurna
06/19/2018, 11:10 AMsuspend fun methodName(image: Bitmap?): String? = async {
// heavy task
}.await()
OR
fun methodName(image: Bitmap?): String? {
//heavyTask
}
and in Code
async{
methodName()
}.await()
aperfilyev
06/19/2018, 2:10 PMjtravis
06/19/2018, 6:29 PMAyden
06/20/2018, 9:34 AMKetan
06/20/2018, 4:13 PMpgreze
06/21/2018, 3:36 AMchanghyun
06/21/2018, 10:31 AMandroid:layout_marginRight="@{rankingItemViewModel.marginLeftOrRight ? 0: 100}"
Anyone can teach me what is wrong??….brainail
06/21/2018, 11:28 AMjuhanla
06/21/2018, 11:35 AMSeri
06/21/2018, 2:49 PMUnresolved reference: account_card
from the following line:
import kotlinx.android.synthetic.main.account_card.view.*
There was a similar 😒tackoverflow: question posted a few months ago, but it didn’t get any response. https://stackoverflow.com/questions/48808542/android-kotlin-kotlinx-module-level-view-bindingAyden
06/21/2018, 3:25 PMchanghyun
06/22/2018, 5:41 AMandroid:layout_gravity="@{rankingItemViewModel.marginLeftOrRight ? Gravity.RIGHT : Gravity.LEFT}"
Any one can tell me why its not working?alex2069
06/25/2018, 5:25 AM@file:Module
?Gta
06/25/2018, 1:02 PMonSuccess
, onError
and onComplete
are exclusive on Maybe
. Did you try to log on onComplete
?Hele
06/25/2018, 3:09 PMkotlin.TypeCastException: null cannot be cast to non-null type android.support.v7.widget.RecyclerView
Hele
06/25/2018, 3:12 PMHele
06/26/2018, 6:52 PMTyler
06/26/2018, 7:01 PMmartynas
06/27/2018, 6:39 AM@Parcelize
? I have a class where Bar
is 3rd party library class.
data class Foo(
val id : Int = 0,
val bar : Bar? = null
)
At compile time I get Type is not directly supported by 'Parcelize'. Annotate the parameter type with '@RawValue' if you want it to be serialized using 'writeValue()'
on Bar
.
That is fine by me. I’m happy to lose that value. But no combination of @IgnoredOnParcel
and @RawValue
did not worked for me yet - runtime error when serializing value.Kevin Janvier Chinabalire
06/27/2018, 8:30 AMNo key with alias
not found found in keystore
am using the same one i used in android studio..dalexander
06/27/2018, 5:41 PMalex2069
06/28/2018, 2:59 AMget()
results in it being created at call-time (and each time something accesses httpLogging
). Without the get()
it's kind of like a constant field that is initialized once when the class is constructed with each access to httpLogging
returning that value.alex2069
06/28/2018, 3:02 AMAyden
06/28/2018, 6:19 AMAyden
06/28/2018, 6:19 AMmodel
and repository
directory?edwardwongtl
06/28/2018, 10:51 AMchi
06/28/2018, 6:48 PMbackgroundPaint.setColor(0xffff0000);
to kotlin results in
backgroundPaint.color = -0x10000
. I wouldn't have been able to know how to get that hex color int on my own without the IDE conversion, please what is going on there so I can be able to reproduce it on my own?eygraber
06/28/2018, 7:11 PMeygraber
06/28/2018, 7:11 PMgildor
06/29/2018, 10:20 AM