FakeSearchView/app/src/main/java/com/github/leonardoxh/fakesearchview/FakeSearchView.java
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);
  }
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);
  }
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
@param context for inflate views
Inflate the layout to this FrameLayout wrapper