{"action":"opened","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/4253","repository_url":"https://api.github.com/repos/libgdx/libgdx","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/4253/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/4253/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/4253/events","html_url":"https://github.com/libgdx/libgdx/issues/4253","id":171576988,"number":4253,"title":"Requesting details or documentation about adding images to android game so that their size will adjust according to screen size","user":{"login":"cdwijayarathna","id":1338607,"avatar_url":"https://avatars.githubusercontent.com/u/1338607?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwijayarathna","html_url":"https://github.com/cdwijayarathna","followers_url":"https://api.github.com/users/cdwijayarathna/followers","following_url":"https://api.github.com/users/cdwijayarathna/following{/other_user}","gists_url":"https://api.github.com/users/cdwijayarathna/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwijayarathna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwijayarathna/subscriptions","organizations_url":"https://api.github.com/users/cdwijayarathna/orgs","repos_url":"https://api.github.com/users/cdwijayarathna/repos","events_url":"https://api.github.com/users/cdwijayarathna/events{/privacy}","received_events_url":"https://api.github.com/users/cdwijayarathna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-17T05:27:08Z","updated_at":"2016-08-17T05:27:08Z","closed_at":null,"body":"#### Issue details\r\nI am creating an android game using libgdx and I use some images in some of the windows. I am placing my images in the window like following.\r\n\r\n`\r\n           screenWidth = Gdx.graphics.getWidth();\r\n           screenHeight = Gdx.graphics.getHeight(); \r\n           batch.draw(playImage, screenWidth / 2 - texture.getWidth() / 2, screenHeight / 4 - texture\r\n                    .getHeight() / 2);\r\n            font.draw(batch, message, screenWidth / 2 - layout.width / 2, 5 * screenHeight / 8 -\r\n                    layout.height / 2);`\r\n\r\nWill this give any issues when I use a different screen size? If so how should I handle this kind of scenario? Is there any documentation or tutorial on how to do this?\r\n\r\n#### Please select the affected platforms\r\n- [x ] Android\r\n- [ ] iOS (robovm)\r\n- [ ] iOS (MOE)\r\n- [ ] HTML/GWT\r\n- [ ] Windows\r\n- [ ] Linux\r\n- [ ] MacOS\r\n"}}
{"actor":{"display_login":"cdwijayarathna"}}