avast / android-butterknife-zelezny

Android Studio plug-in for generating ButterKnife injections from selected layout XML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to turn off auto-generation of inject code in onCreateView?

ar-g opened this issue · comments

It is pretty annoying to get this code every time I wanna update binding of views because I do bind my views in my parent class. I would like to have the option to turn it off.

@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    // TODO: inflate a fragment view
    View rootView = super.onCreateView(inflater, container, savedInstanceState);
    ButterKnife.bind(this, rootView);
    return rootView;
  }

I came here to request the same functionality. It would be nice if there are more options in the plugin's settings screen:
screen shot 2016-08-05 at 09 37 49

yes i totally agree @ar-g with It is pretty annoying to get this code every time please remove it . give some option off this code

@ar-g @martinvano @shakil807g
Maybe you can try this. If it helps you, please give me a star.
#164