Fix padding parsing in layout inflater, added test for it in snapshot tests