Tell me why the ImageView class has an attribute
private int mResource = 0; In which the resource Id is stored:
public void setImageResource(@DrawableRes int resId) { ... mResource = resId; ... } But there is no method to get it? And instead, it is necessary to pervert by adding tags during initialization, and find out the image identifier by them.