Is there a basic library reference for standard Android Icons?

BarrySumpter

Active Member
Licensed User
Longtime User
Hi all,
Super noob. Still hacking away.
I've been using a lot of msgbox to debug and have just noticed there are no icons on my msgbox.

I'm used to being able to define which icon to use in my msgbox.
http://msdn.microsoft.com/en-us/library/sfw6660x%28v=vs.85%29.aspx


Are there no built in icons in Android like vbInformation or vbQuestion ?

B4X:
Dim result As Int 
result = Msgbox2("This is the message", "This is the title", "Good", "", "Bad", LoadBitmap (File.DirAssets, "smiley.gif")) 
If result = DialogResponse.Positive Then ...
So for each and every one of my different Andoid apps I have to install my msgbox gifs in my File.DirAssets?
 
Last edited:

warwound

Expert
Licensed User
Longtime User
Nope there's no way to do that.

You might be able to define a local variable in a module and use that:

B4X:
' this code will be in a module that is NOT b4aIcons code module
Dim Icons As IconType
Icons=b4aIcons.Icons

' now in this module you can use
Icons.???

That's untested but i think will work.

Martin.
 
Upvote 0

BarrySumpter

Active Member
Licensed User
Longtime User
B4X:
#Region My collection of functions
Sub SomeThing()
   ...
End Sub

Sub Another()
   ...
End Sub
#End Region
 

Attachments

  • IconTypesAsRegion.zip
    16.5 KB · Views: 166
Last edited:
Upvote 0

BarrySumpter

Active Member
Licensed User
Longtime User
Bummer. Sad face * 10.
Maybe the b4a designers haven't had time to sort it out as yet.

Would like to have sorted that out.

Thanks for the support.
 
Last edited:
Upvote 0
Top