![]() In order to test the appearance of a Java created user interface the developer will, inevitably, repeatedly cycle through a loop of writing code, compiling and testing in order to complete the design work. ![]() Also, even when hand writing XML layouts, it is possible to get instant feedback on the appearance of the user interface by switching back and forth between the XML editor and the Graphical Layout tool within the Eclipse environment. A second advantage is that once an application has been created, changes to user interface screens can be made by simply modifying the XML file, thereby avoiding the necessity to recompile the application. ![]() As discussed in the previous chapter, one key advantage to the XML approach includes the ability to use the Graphical Layout tool, which, itself, generates XML resources. In fact, Google goes to considerable lengths in the Android documentation to extol the virtues of XML resources over Java code. There are a number of key advantages to using XML resource files to design a user interface as opposed to writing Java code. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |