If anyone wants to break down this code and explain it to me. I'd be thankful.
I run into an error on view(cannot resolve symbol), not sure if I'm supposed to replace that with a specific view ?
Btw, this is an onClick method.
"else if(view.getId()==R.id.Button9){}"
What I understand from this code is it says when "if" "view" whatever the viewid is goes in here ()?? == <--is related to R.id.button9 then run this block of code. Am i even close? Thanks.
A little backstory, I have created an ImageButton
and when it's clicked, I'd like to to clear the screen. I've built on onclicklistener
and implemented view.OnClickListener
on my user public class.
CLEARCANVAS = (ImageButton) findViewById(R.id.button9);
CLEARCANVAS.setOnClickListener(this);
@Override
public void onClick(View v) {
if (view.getId()==R.id.button9);
}