title: android - Butterknife bind inside custom view to fragment
body: <p>I have a fragment which holds a custom view.</p>
  
  <p>in the fragment I do the <code>ButterKnife.bind</code> like this:</p>
  
  <pre><code>    View root = inflater.inflate(R.layout.fragment_home, container, false);
      ButterKnife.bind(this, root);
  </code></pre>
  
  <p>And I manage to bind the views.</p>
  
  <p>Now, the fragment holds a custom view I created.
  In the <code>MenuToggleButton</code> custom view I want to bind another view, and operate with it.</p>
  
  <p>The problem I am having is, I don't know how to access the root view of the fragment from inside the custom view (which is in the fragment).</p>
  
  <pre><code>public MenuToggleButton(Context context, AttributeSet attrs) {
          super(context, attrs);
          final Activity activity = (Activity) context;
          ButterKnife.bind(this, // need to get the fragment root view somehow);
      }
  </code></pre>
  
  <p>How can I get the fragment root view on order to bind it like I did in the fragment?</p>