ispbox
08/25/2019, 8:03 AMprivate val appCompatStyles = AppCompatStyles(ctx)
private val buttons = appCompatStyles.button
val button = buttons.default {
}
while the following replacement works well:
val button = view<AppCompatButton>(::AppCompatButton){
}
louiscad
08/25/2019, 10:25 AMappCompatStyles.button
in a property and use it only when creating a button?ispbox
08/25/2019, 11:40 AMval appCompatStyles = AppCompatStyles(ctx)
val buttons = appCompatStyles.button
val crashingButton = buttons.default { }
view<Type>
) and code analysis works perfectly.louiscad
08/25/2019, 11:47 AMAppCompatStyles
nowadays since I moved to MaterialComponentsStyles
, but they are very similar and it works fine for me on AS 3.5.0 and Kotlin 1.3.50. I'm using the latest dev version of Splitties though, compiled with 1.3.41.ispbox
08/25/2019, 12:01 PMval materialStyles = MaterialComponentsStyles(ctx)
val buttons = materialStyles.button
val crashingButton = buttons.outlined { }
The problem is the same. I guess we should wait for JetBrains answer.