Huge Android library of Android built in icons already on your PC and Phone

klaus

Expert
Licensed User
Longtime User
I took the liberty to modify your program to make it more easy to use.
I put all the definitions in a code module with a unique routine to get the bitmap.

Here is my update.

Best regards.
 

Attachments

  • IconTypes.zip
    16.6 KB · Views: 379
Upvote 0

BarrySumpter

Active Member
Licensed User
Longtime User
Thanks Klaus!

Nice!
I love seeing how the pros do it!
:sign0188:


But I prefer my msgbox4. :)
 
Last edited:
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
I cannot compile - always get an error that I library is might be missing. Which one would I need to reference?


Rolf
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Thank you..

Rolf
 
Upvote 0

BarrySumpter

Active Member
Licensed User
Longtime User
That sample app shows some really nice icons on my HD2 running Android v2.3.7.
Which are not reflected in the drawables link.

I've asked about iterating thru that enumeration but as I understand it can't be done or its too hard at this time.

If anyone knows a way I can interate thru that enumeration
to display the idoncs one at a time
or fill a grid (not 1400 images surely)
or save them off to my sdCard, I'd be happy to chase it down.

tia
 
Last edited:
Upvote 0

BarrySumpter

Active Member
Licensed User
Longtime User
Thought I better qualify the use of these drawables.
i.e. when using them in a distributed app.

Warning: Because these resources can change between platform versions, you should not reference these icons using the Android platform resource IDs (i.e. menu icons under android.R.drawable). If you want to use any icons or other internal drawable resources, you should store a local copy of those icons or drawables in your application resources, then reference the local copy from your application code. In that way, you can maintain control over the appearance of your icons, even if the system's copy changes.
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
I've asked about iterating thru that enumeration but as I understand it can't be done or its too hard at this time.

If anyone knows a way I can interate thru that enumeration
to display the idoncs one at a time
or fill a grid (not 1400 images surely)
or save them off to my sdCard, I'd be happy to chase it down.

tia

I've added a new method to my AndroidResources library:

GetAndroidDrawableNames As List

It returns a List of Strings - the names of the device's build in Android Drawables.

Iterating through the Drawable fields is relatively simple in Java, in B4A it'd have required much use of Reflection to do such a simple task.

http://www.b4x.com/forum/additional-libraries-official-updates/16847-androidresources.html#post96227

Martin.
 
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
@warwound

I should of been watching this thread. I spent some time throwing this together and it's pretty much junk code but it works. I used the previous library before you added GetAndroidDrawableNames. I should of waited on you:(

Anyway, the attached zip will display only the icons on your device in a listview with a scaled up icon thumbnail. Tap to select and it will show how it looks in a message box. Fastscroll is turned on as it is a large list.

NOTICE: Requires Reflections & AndroidResources libraries.
 

Attachments

  • IconsListView.zip
    17.5 KB · Views: 341
Last edited:
Upvote 0

BarrySumpter

Active Member
Licensed User
Longtime User
Margret rocks!!

Squeezed a bit of real estate onto screen in my version.
Orginally getting 3 or 4 rows per screen now getting 8.
Configured for my HD2.

This app shows the 400+ icons only available in Android Drawables.

P.S. I can't belive how easy you guys make this look!

Thanks to all for the contributions!
 

Attachments

  • IconTypesLV2.zip
    17.5 KB · Views: 338
Last edited:
Upvote 0
Top