Modifying answer now that I understand you want the resource identifier of your views:
Resources res = getResources();
for (int i = 0; i < ListOfView.size(); i++){
int id = ListOfView.get(i).getId();
try {
Log.i("View ", res.getResourceName(id));
} catch (Resources.NotFoundException e) {
Log.i("Unknown id " + id);
}
}
5
solved Android : How To convert Object to String