Android Question [SOLVED] B4XLoadingIndicator from XUI Views

cristian petersen

Member
Licensed User
Longtime User
Hello, Attached is a small project. When executed in vertical position in the phone everything is OK but when executed in horizontal position I get an error.

** Activity (main) Pause, UserClosed = false **
Sleep not resumed (context is paused): anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub
** Activity (main) Create, isFirst = false **
Error occurred on line: 33 (B4XLoadingIndicator)
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1148)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1115)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1065)
at android.graphics.Bitmap.createBitmap(Bitmap.java:1026)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper.Initialize(CanvasWrapper.java:81)
 

Attachments

  • load.zip
    9.1 KB · Views: 168
Cookies are required to use this site. You must accept them to continue using the site. Learn more…