2017-07-03 18:26:38 +00:00
|
|
|
package com.codigoparallevar.minicards;
|
|
|
|
|
2017-07-03 18:43:22 +00:00
|
|
|
import android.graphics.Color;
|
2017-07-03 18:26:38 +00:00
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
|
import android.os.Bundle;
|
2017-07-03 21:55:32 +00:00
|
|
|
import android.view.MotionEvent;
|
2017-07-03 18:26:38 +00:00
|
|
|
|
|
|
|
public class TestActivity extends AppCompatActivity {
|
|
|
|
|
2017-07-03 21:55:32 +00:00
|
|
|
DrawView drawView;
|
|
|
|
|
2017-07-03 18:26:38 +00:00
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
2017-07-03 21:55:32 +00:00
|
|
|
drawView = new DrawView(this);
|
2017-07-03 18:43:22 +00:00
|
|
|
setContentView(drawView);
|
2017-07-03 18:26:38 +00:00
|
|
|
}
|
2017-07-03 21:55:32 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean onTouchEvent(MotionEvent event) {
|
|
|
|
return drawView.onTouchEvent(event);
|
|
|
|
}
|
2017-07-03 18:26:38 +00:00
|
|
|
}
|