Monday, August 10, 2009

Exercise: Add a icon on Dialog

Extends from the previous exercise, Exercise: Menu and Dialog. A icon will be added on the About me Dialog, as shown:

Save the icon, , in the folder res/drawable.

Add one line in the openOptionsDialog() class:

private void openOptionsDialog()
new AlertDialog.Builder(this)
new DialogInterface.OnClickListener()
public void onClick(DialogInterface dialoginterface, int i)

Next: Simple steps to change the drawable icon with Transparency background using GIMP

No comments: