Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.paintview;
- import android.content.Context;
- import android.graphics.Canvas;
- import android.util.AttributeSet;
- import android.view.MotionEvent;
- import android.view.SurfaceHolder;
- import android.view.SurfaceView;
- public class PaintView extends SurfaceView implements SurfaceHolder.Callback {
- public PaintView(Context context, AttributeSet attrs, int defStyle) {
- super(context, attrs, defStyle);
- // TODO Auto-generated constructor stub
- }
- public PaintView(Context context, AttributeSet attrs) {
- super(context, attrs);
- // TODO Auto-generated constructor stub
- }
- public PaintView(Context context) {
- super(context);
- // TODO Auto-generated constructor stub
- }
- public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
- // TODO Auto-generated method stub
- }
- public void surfaceCreated(SurfaceHolder arg0) {
- // TODO Auto-generated method stub
- }
- public void surfaceDestroyed(SurfaceHolder arg0) {
- // TODO Auto-generated method stub
- }
- public boolean onTouchEvent(MotionEvent event) {
- return super.onTouchEvent(event);
- }
- protected void onDraw(Canvas canvas) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment