
Could someone help me understand why the default progressview widget (top, above the white box) shrinks in size on the device (it’s also slightly distorted, but it’s not visible in the picture and I can live with it.).
The custom progressview (bottom, below white box) on the other hand, I just don’t get at all. I copied the code directly from the docs, and used the image there, but it comes out like that.
This is the code:
local myBox = display.newRect(display.contentCenterX, display.contentCenterY, 100, 100) sceneGroup:insert(myBox) local bar1 = widget.newProgressView { left = myBox.x - myBox.width/2, top = myBox.y - myBox.height/2 - 10, width = myBox.width, isAnimated = true } bar1:setProgress( 1 ) local options = { width = 64, height = 64, numFrames = 6, sheetContentWidth = 384, sheetContentHeight = 64 } local bar2Sheet = graphics.newImageSheet( "healthsheet.png", options ) local bar2 = widget.newProgressView { sheet = bar2Sheet, fillOuterLeftFrame = 1, fillOuterMiddleFrame = 2, fillOuterRightFrame = 3, fillOuterWidth = 64, fillOuterHeight = 64, fillInnerLeftFrame = 4, fillInnerMiddleFrame = 5, fillInnerRightFrame = 6, fillWidth = 64, fillHeight = 64, left = 50, top = 200, width = 220, isAnimated = true } bar2:setProgress( 1 ) sceneGroup:insert(bar2)