Android Question CircularProgressBar align center problem

Brandsum

Well-Known Member
Licensed User
There is a problem in this XUI custom view. When I set HorizontalAnchor and VerticalAnchor to both sides to place it in the center in designer window, I'm getting this error while loading the layout file.

B4X:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Panel size is unknown. Layout may not be loaded correctly.
Error occurred on line: 39 (CircularProgressBar)
java.lang.IllegalArgumentException: width and height must be > 0
    at android.graphics.Bitmap.createBitmap(Bitmap.java:1033)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:1000)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:950)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:911)
    .....
 

Erel

Administrator
Staff member
Licensed User
Upvote 0

Brandsum

Well-Known Member
Licensed User

Attachments

  • CircularProgressBar_demo.zip
    12.1 KB · Views: 103
Upvote 0
Top