'How to get an id from view binding in when case?

How to change v.getId() in view binding when using when case on kotlin, i didn't found any answer and i'm new to view binding



Solution 1:[1]

In Java

binding.yourView.getId()

In Kotlin

binding.yourView.id

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 R Developer