Activity not resizing to 800x480?

Problems with Canvas, OpenGL, etc...

Activity not resizing to 800x480?

Postby RespeckKnuckles » Tue Jul 27, 2010 7:01 pm

Hey guys,

Tried to search for this one but the search terms I used didn't seem to find worthwhile results. I'm creating an application to run on a device with a 800x480 resolution (the archos 5) so I've created an AVD in the emulator with that resolution. However, when I run my program in the emulator it simply shows the program with the default android size, centered in the 800x480 window. It is not stretched to cover the whole screen. How can I fix this?
RespeckKnuckles
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Jun 30, 2010 8:37 pm

Top

Re: Activity not resizing to 800x480?

Postby jonbonazza » Tue Jul 27, 2010 7:37 pm

Post your layout file if you can.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Activity not resizing to 800x480?

Postby RespeckKnuckles » Tue Jul 27, 2010 11:04 pm

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical"
  4.    android:layout_width="fill_parent"
  5.    android:layout_height="fill_parent"
  6.    android:background="@drawable/albert"
  7.    android:padding="0px"
  8.    >
  9. <TextView  
  10.         android:id="@+id/txtBx"
  11.    android:layout_width="fill_parent"
  12.    android:layout_height="wrap_content"
  13.    android:textColor="#FF0000"
  14.    android:text="@string/hello"/>
  15. <Button android:text="ab" android:id="@+id/ab" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
  16. <Button android:text="ba" android:id="@+id/ba" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
  17. <Button android:text="cb" android:id="@+id/cb" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
  18. <Button android:text="cc" android:id="@+id/cc" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
  19.  
  20. </LinearLayout>
  21.  
Parsed in 0.004 seconds, using GeSHi 1.0.8.4
RespeckKnuckles
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Jun 30, 2010 8:37 pm

Re: Activity not resizing to 800x480?

Postby jonbonazza » Wed Jul 28, 2010 2:27 pm

Hmm.. Looks ok to me. Does it work right on a physical device? The emulator should not be used as a definite means of debugging as a physical device will give you a true visualization of how the app will behave.
jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Re: Activity not resizing to 800x480?

Postby martin_nuke » Thu Jan 06, 2011 7:07 am

I also have the same problem I created a gae for the 800 x 480 Tablet but this is what happens.

The 800 x 480 AVD emulation
Image

Actual game running in the 800 x480 tablet.
Image
martin_nuke
Junior Developer
Junior Developer
 
Posts: 15
Joined: Sat Dec 08, 2007 7:44 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 3 guests