Drawing image with dynamic text

by Neilz » Wed, 09 Dec 2009 19:50:20 GMT


Sponsored Links
 Hi all.

I understand the principle of a 9Patch image where the image stretches
to fit the text within it. But this all assumes that the image is a
background to a TextView, or similar.

What I want to do is draw an image to the canvas, and set the
contained text at the time (currently I'm using canvas.drawText) - but
here the image has no connection with the text, or with a view, so it
wouldn't know to stretch.

I know this can be done, I've seen it, I'm just not sure how to go
about it... it's a bit like on google maps where you have a marker
with a cloud image containing the info, it is set dynamically. Any
ideas appreciated!

--



Other Threads

1. Reason/Explanation Why Camera Crash in Froyo Emulator

Hi guys,

The default camera app still crashes in Froyo emulator.
Any idea why is this?
I know that this is still a limitation of the emulator but why does
the app crashes...
A generic explanation would be helpful before we'll get our hands
dirty with code trace.

(I  already posted this in the platform mailing list. Just hoping
anybody here's done a little tinkering in the default camera module of
the Froyo emulator.)

Thanks.

Chew

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. missing broadcast intents

Hi, I was just working on an app that will do stuff when a call is
missed or made; and am left wondering why do you have to register a
listener using a long lived background service for phone state changes
instead of being able to use broadcast intents?

Thanks for any insights,
Brendan

-- 

3. Beginner...How to test android application?

4. SOLD!!! WTS: x10 mini 2nd baru seminggu

5. Super Mario live wallpaper for Android, No Root Required!

6. Beginner's TableLayout question

7. Appwidget Getting Location Updates