In this chapter, we have seen what the various types of resources supported by LWUIT are, how to use the LWUIT Designer to build resource bundles, and how the Resources class enables us to use the contents of such bundles. The LWUIT Designer is a very convenient tool, which is equivalent to Ant tasks for building resource bundles with just one difference—when a resource file is built by the LWUIT Designer, a theme element in that file cannot access bitmap fonts located in a different resource file.
We have also had a good look at localization, and the
SampleResource demo application showed us how to use it. In the next chapter, we are going to study themes in detail, and see how the LWUIT Designer can be used to build themes.