Need help with screen sizes

Hello! I am new at these forums but senior at Corona :slight_smile: But still, I need help. How can I make my game screen to fit all screen sizes like this:

Simple-Scaling-iOS-Android-phones-tablet

Please… Anyone! I am in such a hurry

Hi @islaitala,

Well, it depends… if you want to use “letterbox”, you can do so, then when you create the TableView, use the actual content width/height when you construct it.

For example:

[lua]

local tableView = widget.newTableView(

    {

        left = 0,

        top = 0,

        width = display.actualContentWidth,

        height = display.actualContentHeight,

        – your other parameters…

    }

)

[/lua]

Brent

Please… Anyone! I am in such a hurry

Hi @islaitala,

Well, it depends… if you want to use “letterbox”, you can do so, then when you create the TableView, use the actual content width/height when you construct it.

For example:

[lua]

local tableView = widget.newTableView(

    {

        left = 0,

        top = 0,

        width = display.actualContentWidth,

        height = display.actualContentHeight,

        – your other parameters…

    }

)

[/lua]

Brent