I guess your problem may be that Android Studio prompts an error, and you suspect that the import package is incomplete.
Judging from the import of the code, there is no problem with importing the package. The reason why Android Studio reported an error is because you did not implement the onClick method of View.OnClickListener.
What the poster means is that there is no automatic Override method, only a class shell! This is a problem with AS recognition after you write. Sometimes it is possible, sometimes it is not. This is indeed inconvenient and requires a second operation to complete!
I guess your problem may be that Android Studio prompts an error, and you suspect that the import package is incomplete.
Judging from the import of the code, there is no problem with importing the package. The reason why Android Studio reported an error is because you did not implement the onClick method of View.OnClickListener.
It should be a reminder that this interface is not implemented. Implement it:
What the poster means is that there is no automatic Override method, only a class shell!
This is a problem with AS recognition after you write. Sometimes it is possible, sometimes it is not. This is indeed inconvenient and requires a second operation to complete!