Android an open handset alliance project by k. Mahesh chandra


Visual design: using DroidDraw



Download 276.25 Kb.
Page7/8
Date17.12.2020
Size276.25 Kb.
#55088
1   2   3   4   5   6   7   8
1 (1)
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:




Download 276.25 Kb.

Share with your friends:
1   2   3   4   5   6   7   8




The database is protected by copyright ©ininet.org 2024
send message

    Main page