Activity and View [closed]
- by CYB
Now, I'm going to create an app that can reserve something. There's three function like menu, reserve, and search. However, I don't know that I should create them as three Activities or just use three views as the function. I want to switch to other function by onclicklistener.
Below is my onClickListener,
private OnClickListener listener = new OnClickListener(){
public void
onClick(View v) { switch(v.getId()){
case R.id.fuiButton1: break;
case R.id.fuiButton2:
break;
case R.id.fuiButton3:
break;
}
} };
Which is the best choice ?