@Override public Object instantiateItem(ViewGroup container,int position){
  LinearLayout layout=(LinearLayout)View.inflate(mContext,R.layout.swipeselector_content_item,null);
  TextView title=(TextView)layout.findViewById(R.id.swipeselector_content_title);
  TextView description=(TextView)layout.findViewById(R.id.swipeselector_content_description);
  SwipeItem slideItem=mItems.get(position);
  title.setText(slideItem.title);
  if (slideItem.description == null) {
    description.setVisibility(View.GONE);
  }
 else {
    description.setVisibility(View.VISIBLE);
    description.setText(slideItem.description);
  }
  if (mCustomTypeFace != null) {
    title.setTypeface(mCustomTypeFace);
    description.setTypeface(mCustomTypeFace);
  }
  if (mTitleTextAppearance != -1) {
    setTextAppearanceCompat(title,mTitleTextAppearance);
  }
  if (mDescriptionTextAppearance != -1) {
    setTextAppearanceCompat(description,mDescriptionTextAppearance);
  }
  if (mDescriptionGravity != -1) {
    description.setGravity(mDescriptionGravity);
  }
  layout.setPadding(mContentLeftPadding,mSweetSixteen,mContentRightPadding,mSweetSixteen);
  container.addView(layout);
  return layout;
}

@ Override public Object instantiateItem ( ViewGroup container , int position ) { LinearLayout layout = ( LinearLayout ) View . inflate ( mContext , R . layout . swipeselector_content_item , null ) ; TextView title = ( TextView ) layout . findViewById ( R . id . swipeselector_content_title ) ; TextView description = ( TextView ) layout . findViewById ( R . id . swipeselector_content_description ) ; SwipeItem slideItem = mItems . get ( position ) ; title . setText ( slideItem . title ) ; if ( slideItem . description == null ) { description . setVisibility ( View . GONE ) ; } else { description . setVisibility ( View . VISIBLE ) ; description . setText ( slideItem . description ) ; } if ( mCustomTypeFace != null ) { title . setTypeface ( mCustomTypeFace ) ; description . setTypeface ( mCustomTypeFace ) ; } if ( mTitleTextAppearance != - 1 ) { setTextAppearanceCompat ( title , mTitleTextAppearance ) ; } if ( mDescriptionTextAppearance != - 1 ) { setTextAppearanceCompat ( description , mDescriptionTextAppearance ) ; } if ( mDescriptionGravity != - 1 ) { description . setGravity ( mDescriptionGravity ) ; } layout . setPadding ( mContentLeftPadding , mSweetSixteen , mContentRightPadding , mSweetSixteen ) ; container . addView ( layout ) ; return layout ; }
override methods / listeners
