You want to get the object ID as a String from the View object.
You can get the id using
view.getId() But then the number returns, but I need something else:
So:
R.id.textView or so
tetView Source: https://ru.stackoverflow.com/questions/611682/
All Articles
switch(view.getId()){case R.id.textView1: someAction(); break; case R.id.textView2: anotherAction(); break;}switch(view.getId()){case R.id.textView1: someAction(); break; case R.id.textView2: anotherAction(); break;}switch(view.getId()){case R.id.textView1: someAction(); break; case R.id.textView2: anotherAction(); break;}etc - YuriySPb ♦