ScrollView, maskFile and different screen sizes

Hi guys

I am trying to create a mask file for a scroll view (using the widget). Based on the tutorials, it is easy to make mainly because its config.lua file only specifies a single screen size.

The problem now is that I am using the config.lua file which specifies a bunch of screen sizes such as (yes, i am using the config.lua from the corona site ) :

width = 360,height = 480,

width = 320,height = 568,

width = 320,height = 480,

width = 320,height = 570,

width = 320,height = 512,

With such variety, when I apply a single mask file (size 360x570), it causes the scroll view on smaller screens (e.g. 360x480) not to mask properly, because the height is different.

My only solution now is to have a set of mask files where the sizes matches the screen size stated in config.lua. Then detect the screen height, and apply the correct mask file according to the screen height (so the height of the mask file equals the height of the screen).

Am I doing this correctly ? Please advise if there is a better way than this.

Thanks

If your scroll view is full screen, you don’t need a mask.

If you really do need a tableview mask (or any mask) dynamically sized, this post by Denis97 outlines a pretty easy way to do (with code) http://forums.coronalabs.com/topic/33503-dyanmic-tableview-mask/?p=185243

Thanks josh. I tried that code and it works with a bit of tweaking.

If your scroll view is full screen, you don’t need a mask.

If you really do need a tableview mask (or any mask) dynamically sized, this post by Denis97 outlines a pretty easy way to do (with code) http://forums.coronalabs.com/topic/33503-dyanmic-tableview-mask/?p=185243

Thanks josh. I tried that code and it works with a bit of tweaking.