Just wondering if manual export of 32x32px versions of tab bar icons are necessary, or if changing the icon names in the code to @2x will cause the 64x64px icons to shrink correctly on f.ex. Iphone 3GS or some low res Android phone.
I guess the question applies to other graphics in the app as well, such as images and thumbnails in lists.
Just trying to avoid time/cost for the company and the clients.
So is there a way to just make the @2x graphics and use that on low-res phones? The reason I ask is that I come from XCode and Iphone, and apart from the app icon, @2x graphics scale fine and I don’t have to make low-res versions.
Attached are all 16 icons for the 4 tabs, and my code goes like this: (didn’t find a code formatting button??)
local tabButtons = {
{ label=“Beräkna”, up=“icon1@2x.png”, down=“icon1_down@2x.png”, width = 32, height = 32, onPress=onFirstView, selected=true },
{ label=“Information”, up=“icon2@2x.png”, down=“icon2_down@2x.png”, width = 32, height = 32, onPress=onSecondView },
{ label=“Hitta Medlem”, up=“icon3@2x.png”, down=“icon3_down@2x.png”, width = 32, height = 32, onPress=onThirdView },
{ label=“Kontakt”, up=“icon4@2x.png”, down=“icon4_down@2x.png”, width = 32, height = 32, onPress=onFourthView },
}– create the actual tabBar widget
local tabBar = widget.newTabBar{
top = display.contentHeight - 50, – 50 is default height for tabBar widget
buttons = tabButtons
}