vipulkr210
08/20/2017, 8:09 AMr-z
08/20/2017, 7:31 PMvedran
08/21/2017, 6:07 AMwith
, example:
class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
fun bind(item: Item) = with(itemView) {
itemTitle.text = item.title
itemSubtitle.text = item.subtitle
}
}
adinugroho
08/21/2017, 6:36 AMmartynas
08/21/2017, 7:22 AM@SinceKotlin("1.1")
and shows compilation errors, but compilation succeeds without any problems. Anyone had and issue like that?peasee
08/21/2017, 9:39 AMneworldlt
08/21/2017, 9:53 AMxxx$1$1
, will proguard require xxx$1
class even xxx$1$1
doesn’t depend on xxx$1
?tapchicoma
08/21/2017, 6:32 PMjkiefer
08/21/2017, 7:44 PMsmuldr
08/22/2017, 8:05 AMContext
, by the way 🤔smilecs
08/22/2017, 8:25 AMraghuramjampala
08/22/2017, 12:16 PMaudhil
08/22/2017, 12:44 PMmy versions as follows
kotlin.incremental=false in gradle.props file
kotlin_version = '1.1.4-2'
buildToolsVersion = "25.0.3"
supportLibVersion = "25.3.1"
archLifecycleVersion = "1.0.0-alpha1"
archRoomVersion = "1.0.0-alpha1"
Android Studio 2.3.3
gradle 2.3.3
wasted lot of time to overcome this issue, but could not succeed 😞r-z
08/22/2017, 2:06 PMjuliocbcotta
08/22/2017, 2:15 PM@Parcelize
of kotlin 1.1.4 ? I can’t find a complete sample on Google…
Kotlin blog has this
@Parcelize
class User(val firstName: String, val lastName: String) : Parcelable
I could make the Parcelize import…but I could not make it compile…AS says I need to implement the Parcelable methods…Paul Woitaschek
08/22/2017, 10:05 PMas?
says that it will return null if it’s not the correct typeumasankar
08/23/2017, 6:12 AMrobinchew
08/23/2017, 8:02 AMCorrect the following errors
in https://storage.googleapis.com/material-design/publish/material_v_11/assets/0Bzhp5Z4wHba3dEZTUF9idzBHMWc/patterns_errors_userinput19.png▾
sylcn
08/23/2017, 8:35 AMsylcn
08/23/2017, 8:43 AMjw
08/23/2017, 6:54 PMkevinmost
08/23/2017, 6:57 PMankitdroiddeveloper
08/25/2017, 6:17 AMdeviant
08/25/2017, 6:41 AMmatys
08/25/2017, 10:53 AMghosalmartin
08/25/2017, 11:13 AMtrubesv
08/26/2017, 7:20 PMben.slama.jihed
08/27/2017, 11:55 AMradityagumay
08/27/2017, 12:13 PMbudioktaviyan
08/28/2017, 10:36 AMOnly static methods can be annotated with @DeepLink
budioktaviyan
08/28/2017, 10:36 AMOnly static methods can be annotated with @DeepLink
gildor
08/28/2017, 10:39 AM@JvmStatic
annotationbudioktaviyan
08/28/2017, 10:41 AM@DeepLink(SCHEME.plus(SERVICE_PAYMENT))
fun registerServiceDeepLink(context: Context): Intent {}
gildor
08/28/2017, 10:41 AMbudioktaviyan
08/28/2017, 10:41 AMgildor
08/28/2017, 10:42 AM@JvmStatic
annotationbudioktaviyan
08/28/2017, 10:43 AMclass DeepLinkDispatcher {
companion object {
const val SERVICE_PAYMENT = "payment"
const val SCHEME = "myweb://"
const val FLAGS_NEW_TASK = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP
@DeepLink(SCHEME.plus(SERVICE_PAYMENT))
@JvmStatic
fun registerServiceDeepLink(context: Context): Intent {
return Intent(context, clazz<PaymentHomeActivity>()).apply {
putExtra(PaymentHomeActivity.HomeIntentKey.SOURCE, MyConstants.EventConstants.PROPERTY_VALUE_SOURCE_DEEP_LINK)
action = DeepLinkKey.ACTION_DEEP_LINK_SERVICE
flags = FLAGS_NEW_TASK
}
}
}
}
gildor
08/28/2017, 10:49 AMbudioktaviyan
08/28/2017, 10:50 AMgildor
08/28/2017, 10:50 AMbudioktaviyan
08/28/2017, 10:50 AMgildor
08/28/2017, 10:51 AMbudioktaviyan
08/28/2017, 10:52 AMgildor
08/28/2017, 10:53 AMbudioktaviyan
08/28/2017, 10:56 AMgildor
08/28/2017, 10:57 AMbudioktaviyan
08/28/2017, 10:58 AMalex.hart
08/28/2017, 11:01 AMbudioktaviyan
08/28/2017, 11:41 AM@JVMStatic
hahahha