Skip to content

Tag: kotlin

Kotlin Any type to Java Object type

I have an odd situation I’ve never run into before. At my company we have a mix of projects with most in Java but a growing number in Kotlin. So we have this existing application written in Java, and we are adding a library written in Kotlin. The Kotlin code has a function argument that takes in a lambd…

Can’t make a bottomsheet go all the way up screen

I’m an internship in a company and I’m not receiving all the support I’d like to. I have this FAQ screen with a button that should bring up a bottomsheet so the customer can contact us. The problem is, it goes up like 75% and the sheet then has to be dragged up to the ‘send’ butt…

Predicate alternative in Kotlin

I try to create lambda in Kotlin. I has following Java interface: And in Java I can return new Specification from method like: And with Java 8 I can cut it to labda like: How to do it in Kotlin with lamba? I already tried many options, but they do not compile. help please. Update: Last option in Kotlin: It