• 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
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

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]
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic