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:
as can see following listview, @ moment each entry has same icon (the green android logo).
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
Post a Comment