-2

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.

tinb
  • 11
  • 2

2 Answers2

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.