Re: [android-developers] Re: Partial invalidation in custom Android view with hardware acceleration

2012-01-25 Thread Andrew Hughes
implementation (and I would love to understand it better!). My gut wants to use a bitmap cache, but you made it sound like with the hardware acceleration pipeline you shouldn't have to? Thanks, Andrew On Sat, Jan 21, 2012 at 12:14 PM, Andrew Hughes ashug...@gmail.com wrote: Thanks. It does

Re: [android-developers] Re: Partial invalidation in custom Android view with hardware acceleration

2012-01-21 Thread Andrew Hughes
Thanks. It does as of API level 12 (Android 3.2.) I would recommend you switch to using hardware AA lines if possible (all devices that shipped with API level 11 should have now be upgraded to 12.) Make sure to use drawLines() as well to batch the geometry. Unfortunately both devices I have

Re: [android-developers] Re: Partial invalidation in custom Android view with hardware acceleration

2012-01-20 Thread Andrew Hughes
Sorry, I'm not following what you are saying. I would expect (though my expectation could very well be wrong :P) that when I call invalidate(Rect) on a hardware accelerated View, that onDraw() would get called on that view with the Canvas clip set to the Rect provided in invalidate(Rect) and that

Re: [android-developers] Re: Partial invalidation in custom Android view with hardware acceleration

2012-01-20 Thread Andrew Hughes
Ah. Okay. I understand this more and more every time I read a post by you or re-watch the Android Accelerated Rending talk from last year's I/O. So what if I'm drawing a Bitmap to the Canvas in that View's onDraw, rather than making canvas drawing calls? The reason for this is one of the things

Re: [android-developers] Re: ICS Active Stylus/Pen Support

2011-11-14 Thread Andrew Hughes
...@commonsware.com wrote: On Tue, Oct 25, 2011 at 6:23 PM, Andrew Hughes ashug...@gmail.com wrote: It would also be helpful if active pen support could be listed as a uses-feature in the Manifest to use Market filters to keep applications that require active pen support from being

Re: [android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values

2011-10-25 Thread Andrew Hughes
Alright. Thank you. I'm not sure if it's something that could be enforced by the CTS, but it would be nice if it was :) I want to be able to draw things in real world units (such as a measurement ruler or lines of binder paper that are *actually* college or wide ruled, etc). Do you have any

Re: [android-developers] ICS Active Stylus/Pen Support

2011-10-25 Thread Andrew Hughes
So there's no way to even programmatically check if a devices supports the pen? Are there plans to add this capability? It would be really useful to know this. Active pens allow for an alternative workflow (not just a more precise, pressure sensitive input device) due to their ability to have side