Visual design: using DroidDraw
Hand-coding the necessary layout files is a pain. The best way to do it is to use a visual design tool. That tool is DroidDraw, Android's answer to NetBeans' Matisse. Download and run the DroidDraw JAR, and try some layout.
Remember to go to the Properties tab of the layout components to give them an ID which you can refer to using the R class.
Save the file directly into the res/layout directory.
Debugging
Do make use of the logging class, like this:
import android.util.Log;
Log.i("LogTag", "This is a log message", exception);
When the Log.i method is called, a log message is generated. You can view logs easily with the adb logcat command:
Share with your friends: |