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

php - How to display all orders for a single product showing the most recent first? Woocommerce -

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

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -