title: Android drawing button to canvas with custom view?
body: <p>How can I draw a button on top of the canvas in a custom view? (Preferably on the mid-right side) Is there something I have to call before doing the button.draw(canvas)?</p>
  
  <pre><code>    public class MyClass extends View {
      public Simulation(Context context) {
              super(context);
              pauseButton.setText("TestButton");
              pauseButton.setClickable(true);
              pauseButton.setOnClickListener(new OnClickListener() {
              public void onClick(View v) {
              Log.i(TAG, "Button Pressed!");
              }
              });
      public onDraw(Canvas canvas) {
             super.onDraw(canvas);
             pauseButton.draw(canvas);
      }
      }
  </code></pre>
  
  <p>Thanks for your time</p>