• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Effective screen size of application

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the effective screen available (Height) for an application without removing any default bars on the top.

480 - (both bars at the top) = ?
 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ran this under default emulator settings(320 x 480 HVGA):

I created an Activity that had only one custom View with Height and Width as "fill_parent". The Activity had both the default title bars;

I printed View#getHeight() and View#getWidth() inside onDraw of the View and got following values for Height and Width:
H: 430
W: 320

I get same values on Hero too. So, IMO that's the answer you want.

 
Ksh Aggarwal
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monu Tripathi wrote:Ran this under default emulator settings(320 x 480 HVGA):

I created an Activity that had only one custom View with Height and Width as "fill_parent". The Activity had both the default title bars;

I printed View#getHeight() and View#getWidth() inside onDraw of the View and got following values for Height and Width:
H: 430
W: 320

I get same values on Hero too. So, IMO that's the answer you want.



Thanks Monu
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome!

[Glad to see that you marked this thread as resolved; not many do that. I guess, it will take some time getting used to]
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic