carlw
09/03/2017, 7:01 PMcarlw
09/03/2017, 7:01 PMtieskedh
09/03/2017, 7:03 PMedvin
09/03/2017, 7:12 PMedvin
09/03/2017, 7:13 PMView
and the other half is for Fragment
. I think it's possible to merge them.tieskedh
09/03/2017, 7:19 PMadd<SubFragment>(
SubFragment::booleanParam to false,
SubFragment::nullableBooleanParam to null
){
subFragmentWithParam = this
}
Instead of
add(SubFragment::class, mapOf(
SubFragment::booleanParam to false,
SubFragment::nullableBooleanParam to null
)){
subFragmentWithParam = this
}
tieskedh
09/03/2017, 7:19 PMedvin
09/03/2017, 7:19 PMedvin
09/03/2017, 7:24 PMedvin
09/03/2017, 7:29 PMedvin
09/03/2017, 7:30 PMassociate
- cool, didn't know about that 🙂edvin
09/03/2017, 7:32 PMedvin
09/03/2017, 7:33 PMuntil
excludes to
tieskedh
09/03/2017, 7:37 PMtieskedh
09/03/2017, 8:11 PMfun <A,B> myClass<A>.exec(param:KClass<B>)
does anyOne know if I can change B in a reified param, without having to specify A?
fun <A, reified B> myClass<A>.exec()
needs to be called with two generics, which makes the function call ugly...
two requirements:
1. It needs to be a extension function.
2. We need both types
https://try.kotlinlang.org/#/UserProjects/i17k5bu7c48i0j6uhv211gbuth/5arob1v1h262kb1u0frdei15pnedvin
09/03/2017, 8:29 PMedvin
09/03/2017, 8:29 PMimage.png▾
tieskedh
09/03/2017, 8:57 PMedvin
09/03/2017, 9:16 PMtieskedh
09/04/2017, 5:35 AMedvin
09/04/2017, 5:35 AMtieskedh
09/04/2017, 6:51 AMedvin
09/04/2017, 7:13 AMtieskedh
09/04/2017, 7:14 AMuser
09/04/2017, 8:32 AMuser
09/04/2017, 8:33 AMaayush
09/04/2017, 8:35 AMinit {
importStylesheet("/fontstyle.css")
label and heading {
padding = box(10.px)
fontSize = 20.px
fontWeight = FontWeight.BOLD
}
smallLabel {
fontSize = 11.px
fontWeight = FontWeight.SEMI_BOLD
}
}
This is my fontsyle.css
@font-face {
font-family: 'Lato';
src: url('fonts/Lato-Regular.ttf');
}
user
09/04/2017, 8:37 AM