android - How to insert an image (selection) in an Alert Dialog? -


i'm making app allows user create several entries in listview. have mainactivity floating button starts alertdialog such one:

the alertdialog displayed

as can see following listview, @ moment each entry has same icon (the green android logo).

listview in mainactivity

i make user select icon among set of icons created on purpose before. idea put little image (the default one) next insert package name here text, on left. once user clicks on picture gets displayed list (let's 9) icons available.

how can it? hope explained myself well.

use seticon(drawable icon) or seticon(int iconid).

if want more customization, can create class extends dialogfragment , create custom layout alertdialog.


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -