Members
Syndication
Friends
The latest free ringtones for mobiles.
Latest Comments
This domain is for sale! Please contact me via contact page!
| Optimize your layouts |
|
|
|
|
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%.
Source: android developers blog |
Subscribe to this Feed


How to display a JPG...
Is that posible to zoom in and drag p...
Making a custom Andr...
Cool - I will use it carefully i promise
How to display a JPG...
problem in image loading - i have exe...
Introducing Calculon...
Thank You for your contribution - Hi,...
Debug a Native Appli...
Never mind, I somehow overlooked the ...