The inflate method of the LayoutInflater class returns an object of type View. So, your textEntryView reference contains an View object. You cannot downcast it to EditText; you will get ClassCastException.
This is standard Java behavior and nothing specific to Android.
You will have to get a handle on the EditText widget by using findViewById(..) after you have inflated the view. And then do a getText on it.