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:
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:
I believe your items root width is wrap_content
, try it with match_parent
.
Make image size static,In wrap content it cause compress. set fix size to your root view it solve problem.