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. Determining and Setting Camera Resolution

Is there a way to force the camera to take a photo of lower resolution
than the list offered under the Camera Options?

Is there also a way to get a list of supported resolutions, and set
the resolution to a particular resolution?

I'm using Android 2.1 onwards.

Thank you.

-- 

2. Android Developer / SDK

Hi Guys/Girls,

I just wanted to reach out. I read the TOS here, and believe this post/
discussion falls within the rules, but be quick to let me know if not.
I am not here to disturb anyone. We are simply looking for an Android
developer that is willing to work in Tampa, FL. We have a few
positions open now, and it is a critical need. Our rates are open TO
AN EXTENT, but we are willing to work with people that have experience
in doing Android development, and not just {*filter*} work. Actual
hands on work experience in a mid-large shop would be best.

Thank you,

Breece Lynn
bl...@vereduscorp.com

-- 

3. Android Market

4. How to get notification of sms thread creation / deletion?

5. Apn Setting Insert Problem

6. Authenticate Non-AppEngine Webservice using Google Account

7. Exception in Klasse ListPreference.java mit excerciser monkey