Android Question WobbleMenu problems with Images(Icons) BUG!

sdleidel

Active Member
Licensed User
Longtime User
Hi,

i try:

B4X:
Dim lss As Bitmap= LoadBitmap(File.DirAssets,"testimage.png")
WobbleMenu1.SetTabTextIcon2(1,"test",lss,false)

and then it come this error:
Error occurred on line: 236 (WobbleMenu)
java.lang.RuntimeException: Object should first be initialized (Typeface).

i think i need a little help...

Many thanks...

Sascha
 
Last edited:

sdleidel

Active Member
Licensed User
Longtime User
Ok this is a Bug in den b4xlib !
Change this lines and it run...

B4X:
233        #IF B4I OR B4j
234        If i.ifont.IsInitialized Then icon.Font = i.iFont
235        #ELSE IF B4A
236        'i.ifont = Typeface.DEFAULT
237        If i.ifont.IsInitialized Then icon.Typeface = i.iFont
238        'icon.Typeface = i.iFont
239        #End If
 
Upvote 0
Top