Android2D Redraw View

To redraw View class.
We want to update View class to add item or something.
In that case, we should use invalidate method of View class;

Inside of View class

public class DrawView extends View
{
   public DrawView ( Context context )
   {
      super(context);
   }

   @Override
   protected void onDraw ( Canvas canvas )
   {
   }

   private void update()
   {
      invalidate();   // Can call directly.
   }
}

Outside of View class

private View view;

public void updateView()
{
   view.invalidate();
}

I tested it in Timer example. here.