예제 #1
0
    @Override
    protected void onDraw(Canvas canvas) {
      if (rect == null) {
        rect = new UIRectangle();
      }

      rect.width = getWidth();
      rect.height = getHeight();
      panel.paintPanel(graphics, rect);
    }
예제 #2
0
 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
   panel.layout(right - left, bottom - top);
 }