-1

This is the code showing for me:

fun onclick(view: android.view.View)

fun onclick(view: View)

What's the difference between these.

tomerpacific
  • 4,704
  • 13
  • 34
  • 52
  • There is no difference between the two method signatures. android.view.View is the object class for View objects. It could be that in your code you have an import statement for this class, which does not require the full path. I don't understand how this relates to view binding. – tomerpacific Nov 21 '21 at 11:06

1 Answers1

0

There is no difference. For the first you wrote it with the package extension and the other is a plain version.

Plain version : fun onclick(view: View)

possum
  • 1,837
  • 3
  • 9
  • 18