Given a View
object which has already been inflated by a layout, how can I retrieve the kind of layout it had been inflated yet? I want to check something like this:
convertView.getLayoutId() == R.layout.my_layout
If this does not work, do you think one possible way of tracking this is to do as follows:
convertView = inflater.inflate(getLayout(), null);
convertView.setTag(getLayout());
?