Android development: App not scaling with resolution?

+1 Jochem Kleine · December 28, 2014
Hey guys,

I saw another user post a design for a calculator. I decided to give it a shot, for practice. In the android studio design preview, it looks like this: Pretty neat right? My excitement however, died down when my BlueStacks emulator finished loading. The app looked like this:

Yeah.. not quite what I was going for. I've tried to adjust the emulator resolution, and it seems that however wide the screen is, the last column of buttons horizontally expands to the edge of the screen. This leads me to believe the error is in my code. I have posted the activity_main code here ( I

Any and all help is appreciated!

Post a Reply


Oldest  Newest  Rating
0 Jochem Kleine · December 29, 2014
Selfreply for anyone finding themselves in similar peril: 

Apparently the grid-layout doesn't scale well with a different screen than the one it is designed on (which was a Nexus 4 for me). I guess I overestimated the worth of dip (density independent pixels). They are not so independent after all, it seems. If anyone has tips for building apps that look good,  and work well,  on various different screen sizes, please do reply :) 

  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator