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.



Other Threads

1. GPS without gps signal

Hi All
Is possible that can using the signal GPS without signal the telephony
active. I need save the gps location in the sqllite when the telephony is



2. ADT Eclipse Plugin won't let me put in a Target

I've been trying to make a new Android project in Eclipse. But whenever I try to do so, it won't let me select a build target. Here's a screenshot: http://twitpic.com/198od6
if you have not mad a target yet, you need to make one before you create a new android project. select Android SDK and AVD Manager from the windows menu and click on virtual devices and make one. thanks --- co-chair http://ocjug.org/ --

3. Error: An SDK Target must be specified.

4. Android Video Spec.

5. How to add an image to my background drawable?

6. Setting android.R.styleable.Theme_textColorDim for my android application

7. Image Views in Relative Layout