Im trying to use a onclick method. My class has..
Public class Homework extends Activity implements View.OnClickListner
And I have a method like this:
@Override
Public void onClick(View v){
Log.I(TAG, "Click");
}
But when I click on the view (which has click=true ) in the xml it doesn’t come up with anything.
When the view is pressed it is meant to log “click” using a normal click listener it work tho but I dont want to use heaps of listeners.
Heve you set the onClickListener to that view?
You have to write this snippet in your code