Hello,
Does anyone tell me if it’s possible to have a transparent image mask for my tableview list??
i want to show my application background through the list.
Thanks [import]uid: 185094 topic_id: 31891 reply_id: 331891[/import]
Hello,
Does anyone tell me if it’s possible to have a transparent image mask for my tableview list??
i want to show my application background through the list.
Thanks [import]uid: 185094 topic_id: 31891 reply_id: 331891[/import]
When you create the list, make sure this is in the options for it:
hideBackground=true,
In other words:
myList = widget.newTableView({
top = display.contentHeight / 2 - 94 - isTall,
width = 244,
height = 280,
hideBackground=true,
noLines=true,
maxVelocity=4,
topPadding = 0,
hideScrollBar=true,
maskFile = "images/mask-244x280.png",
listener=scrollListener
})
[import]uid: 19626 topic_id: 31891 reply_id: 127207[/import]
When you create the list, make sure this is in the options for it:
hideBackground=true,
In other words:
myList = widget.newTableView({
top = display.contentHeight / 2 - 94 - isTall,
width = 244,
height = 280,
hideBackground=true,
noLines=true,
maxVelocity=4,
topPadding = 0,
hideScrollBar=true,
maskFile = "images/mask-244x280.png",
listener=scrollListener
})
[import]uid: 19626 topic_id: 31891 reply_id: 127207[/import]
i put these options , but nothing changed… it keeps shows me the white mask… do you know why? [import]uid: 185094 topic_id: 31891 reply_id: 127421[/import]
i put these options , but nothing changed… it keeps shows me the white mask… do you know why? [import]uid: 185094 topic_id: 31891 reply_id: 127421[/import]
i put these options , but nothing changed… it keeps shows me the white mask…
Does this only work on the device ? I can you see the transparent background in the simulator as well ?
Larry
Hi Larry,
The tableView does not use the “maskFile” parameter any longer (this has been deprecated for quite some time). If you want to apply a custom graphical mask to it, you should be able to apply the mask to its “view” which should be a display group, and thus it can be masked just like any other display group. If you need a link to the masking guide, it’s here:
http://docs.coronalabs.com/guide/media/imageMask/index.html
Take care,
Brent
i put these options , but nothing changed… it keeps shows me the white mask…
Does this only work on the device ? I can you see the transparent background in the simulator as well ?
Larry
Hi Larry,
The tableView does not use the “maskFile” parameter any longer (this has been deprecated for quite some time). If you want to apply a custom graphical mask to it, you should be able to apply the mask to its “view” which should be a display group, and thus it can be masked just like any other display group. If you need a link to the masking guide, it’s here:
http://docs.coronalabs.com/guide/media/imageMask/index.html
Take care,
Brent