Button Image Resizing Problem

by AKninja04 » Wed, 12 May 2010 15:14:15 GMT


Sponsored Links
 Hi all,

I'm writing this program that has a button using a PNG image I created
in photoshop. My problem is that whenever I try to use the image in my
code, it is way too large and streches off screen.

A bit of background: I'm using a MOTO_DROID emulator (854x400px at 265
ppi) as my android device. The button image I created is a 354x104px
at 265 ppi. When I type up the button attributes, I type
android;layout_width="354px", android:layout_height="104px".

Any idea what's going on? All advice is appreciated and thanks for
taking the time to read this. I'm not at home at the moment so I can't
copy and paste the code but if more information is needed I'll be more
than happy to supply.

AK

--



Other Threads

1. how to exit touch mode in Android

I was wondering is there a written code way to exit out of touch mode
in Android i tried googling it and there wasn't and example i was able
to find online but was wondering if anyone knew any written code to
exit out of touch mode in Android

-- 

2. Saving data to SQL lite

Hi there,

I would like to be able to save& view the data from 3 edit text fields
and a date pick to an SQL lite DB.
Can anybody point me to a decent beginners tutorial or perhaps give me
an idea of where to start?

Thanks.

-- 

3. JavaScript Debugging

4. /dev/mydev permissions after insmod from init.rc

5. Gogle: fix the effing Lunar Lander example, unless it's an example of crappy programming.

6. NFC Examples Execution Problem

7. Reading Database files