Adding New Project Resources

In addition to any new string, color, and dimension resources you use within the layout for the help screen, you also need to add a new type of resource: a raw file resource file. In this instance, you include a text file called /res/raw/quizhelp.txt that includes a number of paragraphs of help text, which you will display in the main TextView control of the help screen.

Did you Know?

You can also include large bodies of text as string resources. This can be helpful for internationalization. Using a string resource also allows you to take advantage of the built-in support for some HTML-style tags. In this case, we've used a text file to demonstrate the use of raw file resources.

Was this article helpful?

0 0

Post a comment