drawing image in full screen on different device

by Honest » Thu, 03 Sep 2009 17:19:08 GMT

Sponsored Links

My application required to draw image on full screen.  now the phone
screen size will be different. So will i have to make different image
for each phone or i can use just one image and it can display on full
screen in any device.

drawing image in full screen on different device

by Nightwolf » Fri, 04 Sep 2009 00:02:25 GMT

 Image view with layout_width and layout_height set to fill_parent"
should help.


Sponsored Links

Other Threads

1. Addition of controls dynamically


Can anyone tell me how to add controls dynamically in a layout similar
to the one in contacts edit screen where pressing on + button adds a
button and edit text and on pressing the - button, the last button and
edit text are removed.

Can anyone point me out the code.

Thank you,


2. When Activity is closed, its fields is not release, how to resolve this issue.

In the following                                        scenario, the fields of 
Activity is not released when the Activity is closed with calling finish().
Class MyClass

public MyActivity extends Activity
 private MyClass obj;

 public void onCreate(xxx)
  obj = new MyClass();

when Activity is closed, the field 'obj' is not released. Certainly, we can add 
statement "obj = null" in onDestroy() to release it explicitly, but I'm curious 
that other fields of Activity is not released, is there memory leak?

I tried following test: 
1, Start Activity A
2, Start Activity B from A with calling startActivity
3, Close Activity B with calling finish();
4, Start Activity B in method onResume() of Activity A
When B is started about 2000 times, Android system report out of memory, it 
seems that memory leaks during the processes, how to resolve this issue?

Thanks very much.



3. OOT: Thank for MOMOD ID Android for UNBANNED ME from here :)

4. closed ... WTB - Samsung Spica di Semarang

5. Search Query Returns 0 rows

6. Please help to resolve CTS building error

7. Spica polos