Source code for strings.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Android, Custom Dialog Box!</string>
<string name="app_name">Android Sample Code</string>
<string name="dialog_title">About Android Dialog Box</string>
<string name="dialog_text">\
A dialog is usually a small window that appears in
front of the current Activity. The underlying Activity loses focus and
the dialog accepts all user interaction. Dialogs are normally used for
notifications that should interrupt the user and to perform short tasks
that directly relate to the application in progress (such as a
progress bar or a login prompt).
</string>
</resources>

You can create your own layout for the dialog window with layout and widget elements. After you've defined your layout, pass the root View object or layout resource ID to setContentView(View). Here is the same example using the Dialog class to create a custom dialog.

Thanks for the helpful example code! I compiled a list of some top resources on customizing dialog boxes in android. I include your post. Check it out/ feel free to share. http://www.verious.com/board/Giancarlo-Leonio/customizing-dialog-boxes-in-android/ Hope this can be useful to other developers too.