tags:

views:

35

answers:

2

Hi i am displaying the alert dialog box using below code

final CharSequence[] items = {"Email", "Phone"}; AlertDialog.Builder builder = new AlertDialog.Builder(this);

But I want to display the icons with that names.For x in above code i am taking email and phone.emailIcon comes with email name. For this what can i do give me some suggestions.Thanks in advance

A: 

It is possible to add a custom adapter and a custom view for the strings, look at this link for an example:

http://mgmblog.com/2010/06/10/arrayadapter-and-alertdialog-for-single-choice-items/

Charlie Sheen
A: 

Hi

please check my post on alerts

http://android-pro.blogspot.com/2010/09/using-alerts-in-android.html

Mina Samy