In an XML layout file you specify that “onClick” a button must call the “doSomething” method. In the activity Java file you create a method “public void doSomething(View v)”. What does the ‘v’ parameter refer to?
It refers to the graphical preferences set by the user.
It indicates the view which triggered the method call.
It points to the layout onto which the button is positioned.