First dont draw it on canvas, as touches are applied only to that canvas, in your Activity/xml draw the edit text and your custom view (canvas), if still not clickable try to bring edit text to front
yourLayout.bringChildToFront(yourEditText);
your xml be something like this
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- your custom view here -->
<!-- edittext here -->
<EditText
android:id="@+id/settings_text_y"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>