Changes

Jump to: navigation, search

Creating an Example Android Application

No change in size, 07:20, 3 July 2014
no edit summary
The next step in this tutorial is to modify the user interface of our application so that it displays a larger text view object with a different message to the one provided for us by Eclipse.
The user interface design for our activity is stored in a file named activity_android_testfragment_android_test.xml which, in turn, is located under res -> layout in the project workspace. Using the Package Explorer panel, locate this file as illustrated in Figure 4 12:
== Reviewing the Layout and Resource Files ==
Before moving on to the next chapter, we are going to look at some of the internal aspects of user interface designs and resource handling. In the previous section, we made some changes to the user interface by modifying the activity_android_testfragment_android_test.xml file using the Graphical Layout tool. In fact, all that the Graphical Layout was doing was providing a user-friendly way to edit the underlying XML content of the file. In practice, there is no reason why you cannot modify the XML directly in order to make user interface changes, and in some instances, this will actually be quicker than using the graphical layout tool. At the bottom of the Graphical Layout panel are two tabs labeled Graphical Layout and activity_android_testfragment_android_test.xml respectively. To switch to the XML view simply select the activity_android_testfragment_android_test.xml tab as shown in Figure 4-17:

Navigation menu