@Override
    public CharSequence getPageTitle(int position) {
        switch (position) {
            case 0:
                return context.getResources().getString(R.string.write);
            case 1:
                return context.getResources().getString(R.string.preview);
            default:
                return "";
        }
    }
Set current item

@param position
@return this adapter
app/src/main/java/com/github/pockethub/android/ui/comment/CommentPreviewPagerAdapter.java