• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

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]
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic