I tried to make a simple game using android studio.When i test it out on my android 6(5.5 inches length phone),the game runs smoothly and takes the whole screen of my phone(i used canvas,color,and jgp files but i didnt use any kind of xml methods to implement the game objects).But the main problem is whenever i try to run it on a bigger screen like on a Tab,then the game doesnt take that device's whole screen,it almost uses half of it's screen and so some of the logic that i put into the code also doesnt work properly,like: clash detection doesnt work accurately. I want to know how i can make my android studio project run smoothly on every available devices so that it takes the whole screen everytime?
Asked
Active
Viewed 69 times
0
-
Which layout have you used for your project? Also, can you share screenshot of the issue? – Arnab Banerjee Apr 03 '19 at 04:12
-
https://stackoverflow.com/a/26547124/7377534 – Usama Nasir Apr 03 '19 at 07:18
-
I did not use any xml method to implement my game objects...but i set the layout as linear layout in the xml file – Akif Zaman Apr 03 '19 at 18:48
-
Usama Nasir sorry it didnt help – Akif Zaman Apr 03 '19 at 18:50