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.
Asked
Active
Viewed 358 times
-2
-
Well whenever I tested it it worked, and those tablets shouldn't be so old that `sw` is unsupported on them. – EpicPandaForce Jul 27 '16 at 09:14
-
tablets are actually `layout-sw700dp` :) – Shark Jul 27 '16 at 09:15
2 Answers
1
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.

Jithu P.S
- 1,843
- 1
- 19
- 32
1
Same both file you have use same id of particulate View. Dont change you view id in layout-sw600dp.

Tejas Prajapati
- 54
- 3