Is there a way to set sprites position based on Screen width / height? So, for example, the sprite's position will always on the center / bottom of the screen, even with different device with different screen size.
You can also take a look at : { Application:getLogicalWidth(), Application:getLogicalHeight() } { Application:getDeviceWidth(), Application:getLogicalHeight() } to see which solution fits your needs better
Comments
You can also take a look at :
{ Application:getLogicalWidth(), Application:getLogicalHeight() }
{ Application:getDeviceWidth(), Application:getLogicalHeight() }
to see which solution fits your needs better
This solution has been provided by @ar2rsawseen on his site : AppCodingEasy.
Likes: marbolec