I can’t find a method that does this, but is there a way to reset the LayoutParams on an item?
On rotation of the device, I change the layout params. When I turn back to portrait, I want to change them back to the XML values. Do I just have to define new layout params that match what is in the XML?
before you doing the Rotation , save the initialParams of your item ,
and after the rotation , when u want to change them back , u use the layoutParams that u ‘ve saved from beginning
hope that’s what you want 🙂