i have a problem… I have different textviews with a listener. Like these ones:
help_modul.setOnClickListener(this);
help_timetable.setOnClickListener(this);
help_credits.setOnClickListener(this);
help_todo.setOnClickListener(this);
Here is my listener:
@Override
public void onClick(View v) {
String temp= v.getId(); // DOESNT WORK
Toast.makeText(this, temp, Toast.LENGTH_LONG).show();
}
In my listener I want to differ between my textview…. For example Click on Textfield “a “do that, if a click on another textfield do another operation..
Have u any suggestions?
Try something like this: