android-discuss, Tiled bitmap gets distorted?

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&quot ;
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?
--

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
--~--~---------~--~----~------------~-------~--~----~

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
--~--~---------~--~----~------------~-------~--~----~