Merge change I24895c35 into eclair

* changes:
  Reimplement all the method of Paint for layoutlib