Reputation: 1072
My app uses a specific layout depending on the screen orientation layout-port
and layout-land
and I don't currently use layout
. Reading the documentation the developers mentioned that we shouldn't make assumptions about the default orientation because some devices might have a default orientation of landscape
.
Is it safe then to not include a layout
folder and only have layout-land
and layout-port
?
Upvotes: 1
Views: 341
Reputation: 75645
Build scripts may need it to be present but you can always keep layout
folder empty anyway, however this is not the best approach imho. I'd consider layout
the default layout - but it is up to you if you put portrait or landscape layouts there (I'd suggest putting portrait) so in that case you need just layout
and layout-land
.
Upvotes: 2