title: Android StickyListHeaders on Single Item
body: <p>I'm using the library <a href="https://github.com/emilsjolander/StickyListHeaders#stickylistheaders" rel="nofollow">StickyListHeaders</a> and I'm having a hard time figuring out how to get it to work for my specific application. I want to have a sticky header on the second list item only. When I override the getHeaderId() method and return 1, it puts the header at the very top of the list instead of at the top of the second item. The scrolling is also really jumpy. Has anyone used this library with some success that might know what's going on?</p>
  
  <p>I'm using MergeAdapter, so could that cause an issue with getting the position of the ListView I set it to?</p>
  
  <p>Here's my adapter code:</p>
  
  <pre><code>private class ProfileMergeAdapter extends MergeAdapter implements StickyListHeadersAdapter{
  
      @Override
      public View getHeaderView(int position, View convertView, ViewGroup parent) {
  
          LayoutInflater nameInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          convertView = (RelativeLayout) nameInflater.inflate(R.layout.name_line, null);
          convertView.setLayoutParams(new LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT));
          profilePhotoBottom = (ImageView) convertView.findViewById(R.id.profile_pic_bottom);
          TextView userName = (TextView) convertView.findViewById(R.id.userName);
          userName.setText(Utility.userName);
          profilePhotoBottom.setImageBitmap(photoBMPbot);
          return convertView;
      }
  
      @Override
      public long getHeaderId(int position) {
          return 1;
      }
  
  }
  </code></pre>