I have kept the layout_width as match parent. On first load the view is as expected. But on resume of activity, the layout width became half. It is just simple linear layout ins