We create many XML files for one application in the development of applications for Android; Of course, this is the main theme of the android. For each application screen, we create XML with some layouts (static implementation). When executed, every time an XML file is read, to get all the resources that it wants to display on the screen that we developed.
The same design can be achieved by adding a few lines in the Java code itself (dynamic implementation). For example, we can extend ListActivity instead of creating an XML file, for example. Then why go to XML, since the application must read the file from the phone’s memory, which can lead to slow access and slow down the application?
Thus, a dynamic implementation is always better than a static one.
Please correct me if I am wrong.
Aswin source
share