title: Adding editText to customView
body: <p>I want to add EditText to canvas in specific coordinates.
  Something like this :<img src="https://i.stack.imgur.com/gPQAX.jpg" alt="enter image description here"></p>
  
  <p>I tried to use code :</p>
  
  <pre><code>        LinearLayout layout = new LinearLayout(context);
  
          EditText textView = new EditText(context); 
          textView.setVisibility(View.VISIBLE);
          textView.setText("Hello world");
  
          layout.addView(textView);
  
          layout.measure(canvas.getWidth(), canvas.getHeight());
          layout.layout(0, 0, canvas.getWidth(), canvas.getHeight());
          layout.setGravity(Gravity.BOTTOM);
  
          layout.draw(canvas);
  </code></pre>
  
  <p>But this EditText wasn't show keyboard on click. Can you help me?</p>