<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/com.example.customviews">
<com.example.customviews.MyEditText
android:id="@+id/my_input"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:inputType="My text"
/>
</LinearLayout>
MyEditText text = (MyEditText) findViewById(R.id.my_input)