Hallo Friends cellphone prices and specifications, In the article that you are reading this time with the title Optimize your layouts, we have prepared this article well for you to read and take the information in it. hopefully the contents of the post Article Optimization, Article User Interface, what we write you can understand. all right, have a nice reading..
Writing user interface layouts for Android applications is easy, but it can sometimes be difficult to optimize them. Most often, heavy modifications made to existing XML layouts, like shuffling views around or changing the type of a container, lead to inefficiencies that go unnoticed.
Starting with the SDK Tools Revision 3 you can use a tool called layoutopt to automatically detect common problems. This tool is currently only available from the command line and its use is very simple - just open a terminal and launch the layoutopt command with a list of directories or XML files to analyze:
For each analyzed file, the tool will indicate the line numbers of each tag that could potentially be optimized. In some cases, layoutopt will also offer a possible solution.
The current version of layoutopt contains a dozen rules used to analyze your layout files and future versions will contain more. Future plans for this tool also include the ability to create and use your own analysis rules, to automatically modify the layouts with optimized XML, and to use it from within Eclipse and/or a standalone user interface.
Windows users: to start layoutopt, open the file called
layoutopt.bat
in the tools directory of the SDK and on the last line, replace %jarpath%
with -jar %jarpath%
.Thus the article Optimize your layouts
Enough of the articles Optimize your layouts this time, hopefully it can be of benefit to all of you. well, see you in another article post.
You are now reading the article Optimize your layouts By address link https://cellphone-prices-and-specifications.blogspot.com/2009/12/optimize-your-layouts.html
0 Komentar untuk "Optimize your layouts"