Guest User

Untitled

a guest
Mar 8th, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.26 KB | None | 0 0
  1. package com.example.paintview;
  2.  
  3. import android.content.Context;
  4. import android.graphics.Canvas;
  5. import android.util.AttributeSet;
  6. import android.view.MotionEvent;
  7. import android.view.SurfaceHolder;
  8. import android.view.SurfaceView;
  9.  
  10. public class PaintView extends SurfaceView implements SurfaceHolder.Callback {
  11.  
  12.     public PaintView(Context context, AttributeSet attrs, int defStyle) {
  13.         super(context, attrs, defStyle);
  14.         // TODO Auto-generated constructor stub
  15.     }
  16.  
  17.     public PaintView(Context context, AttributeSet attrs) {
  18.         super(context, attrs);
  19.         // TODO Auto-generated constructor stub
  20.     }
  21.  
  22.     public PaintView(Context context) {
  23.         super(context);
  24.         // TODO Auto-generated constructor stub
  25.     }
  26.  
  27.     public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
  28.         // TODO Auto-generated method stub
  29.     }
  30.  
  31.     public void surfaceCreated(SurfaceHolder arg0) {
  32.         // TODO Auto-generated method stub
  33.     }
  34.  
  35.     public void surfaceDestroyed(SurfaceHolder arg0) {
  36.         // TODO Auto-generated method stub
  37.     }
  38.  
  39.     public boolean onTouchEvent(MotionEvent event) {
  40.         return super.onTouchEvent(event);
  41.     }
  42.  
  43.     protected void onDraw(Canvas canvas) {
  44.     }
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment