@Override
 public Object getItem(int position) {
   return mPosts.get(position);
 }
 @Override
 public int getCount() {
   return mPosts.size();
 }