Creating a tablet emulator
Select Tools | AVD Manager and then click the Create Virtual Device… button on the Your Virtual Devices window. You will see the Select Hardware window in the following screenshot:
Select the Tablet option from the Category list and then highlight the Pixel C tablet from the choice of available tablets. These choices are highlighted in the previous screenshot.
Tip
If you are reading this sometime in the future, the Pixel C option might have been updated. The choice of tablet is less important than practicing this process of creating a tablet emulator and then testing your apps.
Click the Next button. On the System Image window that follows, just click Next, because this will select the default system image. It is possible that choosing your own image will cause the emulator not to work properly.
Finally, on the Android Virtual Device screen, you can leave all the default options as they are. Feel free to change the AVD Name for your emulator or the Startup Orientation (portrait or landscape) if you want to:
Click the Finish button when you are ready.
Now, whenever you run one of your apps from Android Studio, you will be given the option to choose Pixel C (or whatever tablet you created). Here is a screenshot of my Pixel C emulator running the CardView
app:
Not too bad, but there is quite a large amount of wasted space and it looks a bit sparse. Let's try it in landscape mode. If you try running the app with the tablet in landscape mode, the results are worse. What we can learn from this is that we are going to have to design our layouts for different size screens and for different orientations. Sometimes, these will be clever designs that scale to suit different sizes or orientations, but often they will be completely different designs.