• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Default unit for setStrokeWidth?

Babigabe

Lurker
I always thought the default unit for Paint.setStrokeWidth() (and all the other methods) would be pixels. Now that I've played around with the new SDK 1.6 for a while I think it could also be DIP. For example if I call setStrokeWidth(3) the line is three pixels wide on a HVGA display. However on WVGA800 the line seems to be 4.5 pixels wide (with anti aliasing turned on). I could not find anything about that in the documentation. Who knows more?
 
Back
Top Bottom