October 2017
Intermediate to advanced
294 pages
6h 49m
English
We'll start by creating a class-extending view. On its onDraw() method we will draw the following parts:
We'll also need to trigger a redraw cycle if we are animating some variables.
So, let's start with this implementation of the onDraw() method, and let's proceed method by method:
@Override protected void onDraw(Canvas canvas) { animateLogic(); long currentTime = System.currentTimeMillis(); drawBackground(canvas); drawEPGBody(canvas, currentTime, frScrollY); drawTimeBar(canvas, currentTime); drawCurrentTime(canvas, currentTime); if (missingAnimations()) invalidate(); ...Read now
Unlock full access