[android-developers] Re: Layout on emulator and phone

2010-03-12 Thread DonFrench
Oddly, I can no longer get an emulator to display a full-resolution
480-800 screen.  This is something that changed on me overnight.  Even
if I specify the resolution explicitly when creating an emulator
device, it still comes up 320x480.  Has anyone else had this problem
and do you have any suggestions how to fix it?

On Mar 2, 8:38 am, Mark Murphy mmur...@commonsware.com wrote:
 nikhil wrote:
  I designed the user interface of my app on the emulator and then I
  installed it on the Nexus one. For some reason the textboxes, labels
  buttons etc. have shrinked in size. It looks as if the view has been
  zoomed out on the phone. If I arrange it correctly on the phone the
  objects don't fit on the emulator..

  Has anyone faced this? Is there some setting to have consistency
  between the look of the emulator and Nexus One.

  I have 2.1 OS on both

 FWIW, in all the samples I have tested, the Nexus One looks identical to
 aWVGA800Android 2.1 emulator image.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Online Training: 26-30 April 2010:http://onlc.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Layout on emulator and phone

2010-03-02 Thread nikhil
Awesome Mark! It works I was using HVGA before

Thank you once again

On Mar 2, 10:38 am, Mark Murphy mmur...@commonsware.com wrote:
 nikhil wrote:
  I designed the user interface of my app on the emulator and then I
  installed it on the Nexus one. For some reason the textboxes, labels
  buttons etc. have shrinked in size. It looks as if the view has been
  zoomed out on the phone. If I arrange it correctly on the phone the
  objects don't fit on the emulator..

  Has anyone faced this? Is there some setting to have consistency
  between the look of the emulator and Nexus One.

  I have 2.1 OS on both

 FWIW, in all the samples I have tested, the Nexus One looks identical to
 a WVGA800 Android 2.1 emulator image.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Online Training: 26-30 April 2010:http://onlc.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Layout on emulator and phone

2010-03-02 Thread nikhil
Okay my next question how can I have my main.xml file at that size ?

On Mar 2, 10:53 am, nikhil nik...@gmail.com wrote:
 Awesome Mark! It works I was using HVGA before

 Thank you once again

 On Mar 2, 10:38 am, Mark Murphy mmur...@commonsware.com wrote:

  nikhil wrote:
   I designed the user interface of my app on the emulator and then I
   installed it on the Nexus one. For some reason the textboxes, labels
   buttons etc. have shrinked in size. It looks as if the view has been
   zoomed out on the phone. If I arrange it correctly on the phone the
   objects don't fit on the emulator..

   Has anyone faced this? Is there some setting to have consistency
   between the look of the emulator and Nexus One.

   I have 2.1 OS on both

  FWIW, in all the samples I have tested, the Nexus One looks identical to
  a WVGA800 Android 2.1 emulator image.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://twitter.com/commonsguy

  Android Online Training: 26-30 April 2010:http://onlc.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Layout on emulator and phone

2010-03-02 Thread Mark Murphy
nikhil wrote:
 Okay my next question how can I have my main.xml file at that size ?

Well, if you can suffer through the sluggish site, I encourage you to
read the five-post blog series I just wrapped up on supporting multiple
screen sizes:

http://www.androidguys.com/2010/02/16/handling-multiple-screen-sizes-part/
http://www.androidguys.com/2010/02/18/handling-multiple-screen-sizes-part-2/
http://www.androidguys.com/2010/02/23/handling-multiple-screen-sizes-part-3/
http://www.androidguys.com/2010/03/01/handling-multiple-screen-sizes-part-4/
http://www.androidguys.com/2010/03/02/handling-multiple-screen-sizes-part-5/

Ideally, your existing main.xml just works. If that is untenable, or you
want to do something significantly different, create res/layout-large/
and put a main.xml in there.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.3 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Layout on emulator and phone

2010-03-02 Thread nikhil
Hey Mark,

I read those articles and found out that I just had to change my px to
dpi and everything was okay as I was using relative layout already.

Thank you so much, once again!



On Mar 2, 11:19 am, Mark Murphy mmur...@commonsware.com wrote:
 nikhil wrote:
  Okay my next question how can I have my main.xml file at that size ?

 Well, if you can suffer through the sluggish site, I encourage you to
 read the five-post blog series I just wrapped up on supporting multiple
 screen sizes:

 http://www.androidguys.com/2010/02/16/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/02/18/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/02/23/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/03/01/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/03/02/handling-multiple-screen-sizes-...

 Ideally, your existing main.xml just works. If that is untenable, or you
 want to do something significantly different, create res/layout-large/
 and put a main.xml in there.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.3 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en