Let see below code to create search field. How can I change the font size of searchfield widget?
I try to use command - searchField.font = native.newFont(fontNameBold, sizefont ) but it’s not working on Iphone or Ipad. (the size is not changed)
and another question - Can I use Search field widget on Corona Starter Kit version?
local searchField = widget.newSearchField
{
left = 0,
top = 0,
width = 200,
placeholder = “Search Plus Size …”,
textFieldXOffset = 10,
listener = onSearchEvent,
}
searchField.anchorX = 0.5;searchField.anchorY = 0.5;
searchField.x = display.contentCenterX
searchField.y = welcometxt.y + welcometxt.contentHeight*0.5 + searchField.contentHeight/2 + 8
searchField.font = native.newFont(fontNameBold, sizefont )