title: Add Floating Action Button to ListFragment with a custom ArrayAdapter
body: <p>I used this guide to create a Custom ListView that parses its data from JSON.</p>
  
  <p><a href="https://www.bignerdranch.com/blog/customizing-android-listview-rows-subclassing/" rel="nofollow">https://www.bignerdranch.com/blog/customizing-android-listview-rows-subclassing/</a></p>
  
  <p>I want to add a Floating Action Button to the ItemListFragment but don't know how.</p>
  
  <p>Tried to put it under here:</p>
  
  <pre><code>public ItemView(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
      LayoutInflater.from(context).inflate(R.layout.item_view_children, this, true);
      setupChildren();
  }
  </code></pre>
  
  <p>But it gets displayed to every Item which i do not want.</p>
  
  <p>Here is the code with the full example:</p>
  
  <p><a href="https://github.com/bignerdranch/android-listview-custom-view/tree/master/ListItemViewDemo/src/com/bignerdranch/android/listitemviewdemo" rel="nofollow">https://github.com/bignerdranch/android-listview-custom-view/tree/master/ListItemViewDemo/src/com/bignerdranch/android/listitemviewdemo</a></p>
  
  <p>Any ideas how to do this?</p>
  
  <p>Tried to modify inflate but dosen't work:</p>
  
  <pre><code>public static ItemView inflate(ViewGroup parent) {
      ItemView itemView = (ItemView)LayoutInflater.from(parent.getContext())
              .inflate(R.layout.item_view, parent, false);
      LayoutInflater inflater = LayoutInflater.from(parent.getContext());
      FloatingActionButton fab = (FloatingActionButton) inflater.inflate(R.layout.fab_view, parent, false);
      return itemView;
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>If i place it under constructor, it works ok. But Because constructor is called multiple times for each view, i have to find a way to call it only once.</p>
  
  <pre><code>public ItemView(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
      LayoutInflater.from(context).inflate(R.layout.item_view_children, this, true);
      LayoutInflater.from(context).inflate(R.layout.fab_view, this, true);
      setupChildren();
  }
  </code></pre>