Application not using xml in layout-sw600dp folder for tablets

390 Views Asked by At

I am trying to use "layout-sw600dp" folder for changing layout for tablet. But it's not working. findViewById is returning null for views in "layout-sw600dp" xml Checked manifest, ConfigChanges are ok. Tried on Nexus 10 and Nexus 7. Please help in fixing this.

2

There are 2 best solutions below

0
Jithu P.S On

Check you are using the same ID which is in your normal layout.Dont change the id's while you are moving to layout-sw600dp.. double check your new layout-sw600dp.

0
Tejas Prajapati On

Same both file you have use same id of particulate View. Dont change you view id in layout-sw600dp.