android - update view at 5hz: surfaceview or view? -


a ble peripherall send me data @ 5hz, receive in service send data through "local broadcast msg" ux @ same rateo after interpolation.

on ux have draw custom indicator rateo.

i think use surfaceview i'm wondering if normal view extension enough.

can give me suggestion ?

there's no fixed rate limit custom views.

if planning render canvas, custom view more efficient surfaceview, because can take advantage of hardware acceleration. canvas rendering onto surfaceview surface done in software (as of 5.0 @ least).

the advantage of surface that, because it's on separate layer, you're not tied view ui's invalidate/redraw cycle.

at 5 updates per second think have pretty free hand in choosing solution.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -