Summary

In this module, you learned why it is important to make your application DPI-aware and you performed the following exercises:

  • Marked your application as DPI-aware by using the manifest entry
  • Tested your application at the 144 DPI setting
  • Compared the UI elements at the 144 DPI setting to those at the 96 DPI setting
  • Scaled the button size and layout, scaled the window size, and used the default theme text API for text

To make your application truly high-fidelity DPI-aware, you should create multiple resolution versions of your images, bitmaps, icons, and toolbar buttons. Then you will have appropriately scaled images for different display resolutions without having the blurriness or pixilation associated with scaling small bitmaps. With those high-fidelity assets, you can select the appropriate bitmap based on the closest match to the current DPI setting and then scale to fit the precise setting.