I'm new here, so i want to ask about title above,
i Have code like this:
public class TanyaDokter extends Fragment {
View View;
public TanyaDokter(){}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.activity_tanya_dokter, container, false);
Button button = (Button)view.findViewById(R.id.button1);
button.setOnClickListener(new OnClickListener()
{
public void onClick(View v){
switch(v.getId()){
case R.id.button1:
Intent intent1 = new Intent(view.getContext(), FormTanyaDokter.class);
startActivity(intent1);
break;
this code is success to click one button, but i want to make two or more button, so my question is how to make this code can handle two or more button click. thanks