View on View Problem

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

View on View Problem

Postby » Thu Mar 19, 2009 8:19 pm

Hello All,

I'm developing an application that structurally is quite simple - it's basically just an activity with a view that has to redraw the whole screen occasionally. I've the the setDrawingCacheEnabled() flag in the view so that it remains on screen and it seems to work fine - I only do an invalidate when the whole screen needs to be redrawn (as the screen draw code is rather heavy).

However, I would like a kind of 'compass' line overlaid onto this view (in the centre of the screen, in about an 80x80 pixel area) that's updated more often (every time the device sensors change). I suspect it needs to be a separate view on top as to redraw the whole view every time the sensors change really slows things down.

So, how can I have an constantly updated view on top of a view that is only updated as and when?

If anyone can help, it would be much appreciated as I'm getting nowhere trying different things!

Posts: 3
Joined: Sun Feb 22, 2009 2:44 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests