Canvas INSIDE of a Layout???

by Ryan Detwiler » Tue, 09 Nov 2010 02:23:42 GMT


Sponsored Links
 Hellooo.. I need to have a dynamically updateable canvas inside of a
layout. I would prefer having some sort of method to draw to an
imageview, which is displayed in red on the screenshot. It's intended
to be a graph that updates every 5 times/second or so. Any ideas??
I've been searching for hours and can't seem to find some sort of
concrete example. they all make the entire screen a canvas, which
doesn't allow for layouts. Please help, and thanks in advance! :)

 http://i220.photobucket.com/albums/dd15/memphetic/CanvasExample.png 

--



Canvas INSIDE of a Layout???

by Stephen Jungels » Tue, 09 Nov 2010 03:01:38 GMT


 This would be an example of creating a custom component.  It's covered
very well in the docs:
 http://developer.android.com/guide/topics/ui/custom-components.html 

The requirement for timed updates can be filled by your activity
calling invalidate() on the custom view when needed.

--SJ



>


Sponsored Links


Other Threads

1. Contacts helper class or simple library?

Hi,

could anyone tell if there is some simple helper class or library for
accessing Contacts in Android phone.
I don't think I am the first one who is having difficulties coping
with Contacts management from code. They could done it a little bit
simpler..


Tnx for help.

-- 

2. A Mistake in Dev Guide

``
android update lib-project \
--target <target_ID> \
--path path/to/your/project
--library path/to/library_projectA
''
should be:
``android update project \
--target <target_ID> \
--path path/to/your/project
--library path/to/library_projectA
''

-- 

3. NumberPicker (clone) problem

4. Going through resources one by one

5. paging yang gunakan AHA daerah bandun

6. How to make network reconnection in the app of c/s?

7. Get the screenshot includes the current wallpaper without DDMS