Tablet is another emerging Android device in the present context. We should also define layouts to support tablet devices. To cater to tablet devices, or so called large devices, we need to have another set of layouts defined under the folder
res/layout-xlarge (for the portrait mode) and
layout-xlarge-land (for landscape mode).The following snapshot shows the folders and files for defining the layouts for larger devices (tablets):
Once we have created the corresponding folder, we can make use of fragments as demonstrated previously, to create different layouts and achieve the goal of supporting tablets.