In Java it was like:
layoutParams.setGravity(Gravity.END|Gravity.BOTTOM);
How to do this in Kotlin?
This operator is called "bitwise or" and it has analogue in Kotlin. Use it like this:
layoutParams.gravity = Gravity.END or Gravity.BOTTOM
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With