protected void init ( Context context ) { LayoutInflater . from ( context ) . inflate ( R . layout . fake_search_view , this , true ) ; wrappedEditText = ( EditText ) findViewById ( R . id . wrapped_search ) ; wrappedEditText . addTextChangedListener ( this ) ; wrappedEditText . setOnEditorActionListener ( this ) ; }
Inflate the layout to this FrameLayout wrapper