Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercises

1. Add a new color resource with a value of #00ff00 to your HelloKindle project. Within the main.xml layout file, use the Properties pane to change the textColor attribute of the TextView control to the color resource you just created. View the layout in the Eclipse layout resource editor and then rerun the application and view the result on an emulator or Kindle Fire—in all three cases, you should see green text.

2. Add a new dimension resource with a value of 22pt to your HelloKindle project. Within the main.xml layout file, use the Properties pane to change the textSize attribute of the TextView control to the dimension resource you just created. View the layout in the Eclipse layout resource editor and then rerun the application and view the result on an emulator or Kindle Fire—in all three cases, you should larger font text (22pt).


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint