Android Question Icon chooser

ciprian

Active Member
Licensed User
Longtime User
Hi there. In my app, i wish to let the user change icons from a file and use it into a list. What is the best way to do it and have something like the image from ahaShareLibrary in here?

Thank you.

Capture.PNG
 

Theera

Expert
Licensed User
Longtime User
Hi ciprian,
If you could succeed it,please share your completely coding. I need to learn this.
Thank you in advance.
P.S. I would like to ask as same as this,but I don't know how to ask.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
This cannot be done with ContentChooser. You will need to implement a chooser in your code.

You can use CustomListView class and add the icons from File.DirAssets.

Could I use AHDashboard library instead of customListView?
 
Upvote 0

ciprian

Active Member
Licensed User
Longtime User
I think the best way to do it is to create a panel, inside we create some buttons with .png images as button_background.
When the user want to choose an icon, we set the pannels visibility = true, and when it click onto a btton, we have a sub...sub_buttonclicked for exemple, and we set the icon .png as icon into our object.
I will try a litle exemple when i will have some spare time....
 
Upvote 0

ciprian

Active Member
Licensed User
Longtime User
I found the way to do it. It's quite simple....maybe too simple...

Here , you can find an example... i hope that's a good way to do it.
 

Attachments

  • IconChooser.zip
    35.9 KB · Views: 235
Upvote 0

Theera

Expert
Licensed User
Longtime User
Thank you,I will do as yours.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
I think that it's very simple strategy. Is there any better strategies?
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
I think that my post #2 it could do as same as your done. I'm busy to test it. I'm in hospital.
 
Last edited:
Upvote 0
Top