Try the attached sample in Release and Debug Mode. Release Mode is OK, but in Debug it catches an error??
Not sure if it is B4A or the Library itself causing the problem.
Not sure if it is B4A or the Library itself causing the problem.
B4X:
'java.lang.RuntimeException: native typeface cannot be made
' at android.graphics.Typeface.<init>(Typeface.java:147)
' at android.graphics.Typeface.createFromAsset(Typeface.java:121)
' at com.github.MaterialIconUtils.getTypeFace(MaterialIconUtils.java:24)
' at com.github.MaterialDrawableBuilder.<init>(MaterialDrawableBuilder.java:52)
' at com.github.MaterialDrawableBuilder.with(MaterialDrawableBuilder.java:64)
' at com.github.MaterialIconView.init(MaterialIconView.java:74)
' at com.github.MaterialIconView.<init>(MaterialIconView.java:29)
' at de.donmanfred.MaterialIconViewWrapper._initialize(MaterialIconViewWrapper.java:46)
' at de.donmanfred.MaterialIconViewWrapper.Initialize(MaterialIconViewWrapper.java:39)
' at java.lang.reflect.Method.invokeNative(Native Method)
' at java.lang.reflect.Method.invoke(Method.java:507)
' at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:742)
' at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
' at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:246)
' at java.lang.reflect.Method.invokeNative(Native Method)
' at java.lang.reflect.Method.invoke(Method.java:507)
' at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
' at b4a.example.main.afterFirstLayout(main.java:102)
' at b4a.example.main.access$000(main.java:17)
' at b4a.example.main$WaitForLayout.run(main.java:80)
' at android.os.Handler.handleCallback(Handler.java:587)
' at android.os.Handler.dispatchMessage(Handler.java:92)
' at android.os.Looper.loop(Looper.java:123)
' at android.app.ActivityThread.main(ActivityThread.java:3683)
' at java.lang.reflect.Method.invokeNative(Native Method)
' at java.lang.reflect.Method.invoke(Method.java:507)
' at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
' at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
' at dalvik.system.NativeStart.main(Native Method)