Tiled bitmap gets distorted?

by Ozymandias » Thu, 08 Apr 2010 09:02:17 GMT


Sponsored Links
 I created a bitmap to fill in some empty area on my toolbar. I want it
to tile as it expands.

<?xml version="1.0" encoding="UTF-8"?>
<bitmap xmlns:android=" http://schemas.android.com/apk/res/android" ;
    android:src="@drawable/map_toolbar_background"
    android:gravity="top"
    android:tileMode="repeat" />

My problem is, that placed next to buttons created with the same
background, of the same height, it looks wrong. It gets distorted and
stretched some vertically and is blurrier than the buttons which are
not tiled. If I use the same bitmap just as a android:background, it
looks perfect.

Any ideas what android's doing to my bitmap?

--



Other Threads

1. how to change a typeFace on a textView from remoteView

Because widgets live in other processes, they can only use system
typefaces, and not additional fonts that might be internal to your
package.  One way around this would be to render your font onto a
Bitmap in your process, and then push it across RemoteViews.

j







-- 
Jeff Sharkey
jshar...@android.com

--~--~---------~--~----~------------~-------~--~----~

2. Image quality

Hello everyone,

I have a picture .png in my Android app, but it loses too much quality when
I see it on Android.
What can be?

Thank you very much!
Att,
Junior Einsfeld

--~--~---------~--~----~------------~-------~--~----~

3. images render very differently

4. Did my phone just get hacked?

5. Maps and StreetView missing in Android SDK 1.5?

6. how to check in intenet connction is avaliable

7. Obscura