package net.yaht.m.dynview;

import android.app.Activity;
// import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.SurfaceView;
import android.view.View;
import android.widget.Switch;
import android.widget.TextView;

// AppCompatActivity we do not use;
public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // standard drawing...

        // ref to our painting resource...
        StandardPaint _paint_view = (StandardPaint)findViewById(R.id._standard_paint);

        // ref to our reporting resource...
        TextView _txt_coords = (TextView)findViewById(R.id._txt_coords);

        // put on in another...
        _paint_view.setTextView(_txt_coords);

        // and of cource our user input
        _paint_view.setOnTouchListener(_paint_view);

    }

    public void _switch_m(View v) {

//        // STEP. 2
//
//        Switch _sw_m = (Switch) v;
//        DrawingPlace _drawing_place = (DrawingPlace) findViewById(R.id._drawing_place);
//        _drawing_place._pthread._set_running(_sw_m.isChecked());
//        Tools.log2me("MainActivity/_switch_m is checked? ", Boolean.toString(_sw_m.isChecked()));

    }

}
