'Save some information in Android's tag

I want to know if it is good practice to save some metadata to the View's tag. I have this code:

TableRow file = new TableRow(getActivity());
file.setTag(<Object_with_data>);

And in the OnClickListener:

file.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Object_with_data instanse1 = 
                    (Object_with_data) view.getTag();
        }
});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source