Solution 1 :
Make image size static,In wrap content it cause compress. set fix size to your root view it solve problem.
Solution 2 :
I believe your items root width is wrap_content
, try it with match_parent
.
Problem :
I have a RecyclerView
with GrideLayoutManger
. When I rotate the phone, the RecyclerView item card size changes.
How can I solve this problem?
Actual card size before rotating phone:
After rotating the phone:
Comments
Comment posted by Ergin Ersoy
Please add your code so we can see what you did so far.
Comment posted by Ali Rezaiyan
Try to use setHasFixedSize(true) on your recyclerview
Comment posted by Prashanth Verma
Please add your recyclerview and adapter code
Comment posted by Fahad Alotaibi
change the width of the card to match_parent