Why Not Use an HTML View

Android supports embedding a web browser directly into a view through the WebView class (see Section 7.2, Web with a View, on page 135). So, why didn't we just use that for the About box?

Actually, you could do it either way. A WebView would support far more sophisticated formatting than a simple TextView, but it does have some limitations (such as the inability to use a transparent background). Also, WebView is a heavyweight widget that will be slower and take more memory than TextView. For your own applications, use whichever one makes the most sense for your needs.

Report erratum

Figure 3.10: The options menu contains one item for changing the Settings
0 0

Post a comment