0
I usually find this in some parameter of an Activity.
For example:
public void onClick(View view){
//código
}
I would like to know better what you are referring to.
0
I usually find this in some parameter of an Activity.
For example:
public void onClick(View view){
//código
}
I would like to know better what you are referring to.
Browser other questions tagged android
You are not signed in. Login or sign up in order to post.
That object
view
, is the object over the click action. This method is invoked when we define the attribute onClick in XMLandroid:onClick="onClick"
, for example.– Valdeir Psr
The first
View
, in capital letters, is the identifier of the argument type. The secondview
, lowercase, is the name of the argument. The name is arbitrary, so it could be donepublic void onClick(View minhaTelinha)
, now we have a name argumentminhaTelinha
who’s kindView
, method signature equivalent topublic void onClick(View view)
– Jefferson Quesado