I created a method that I was going to link to a Button
on my Fragment
.
For some reason when I put the method in the Fragment
and go to the layout file for the fragment, the button's on click property doesn't seem to recognize the method. When I put the identical method within the main Activity
it seems to recognize the method just fine, but I want to have this method exist within my Fragment
.
Does anyone know how I can fix this while still having the method exist in my Fragment
?
public void onClicFragment(View v)
{
}