CopyPastor

Detecting plagiarism made easy.

Score: 0.9479343410995271; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-05-09
by Krishna

Original Post

Original - Posted on 2013-05-24
by Blackbelt



            
Present in both answers; Present only in the new answer; Present only in the old answer;



public class TabAdapter extends FragmentPagerAdapter implements ActionBar.TabListener , ViewPager.OnPageChangeListener{ int resId = {R.drawable.position0, R.drawable.position1, R.drawable.position2, R.drawable.position3, R.drawable.position4}; @Override public void onPageSelected(int position) { mActionBar.setSelectedNavigationItem(position); int resIdLenght = resId.length; if (position < 0 || position >= resIdLenght) return; int drawableId = resId[position]; mActionBar.setIcon(drawableId); } }

public class TabAdapter extends FragmentPagerAdapter implements ActionBar.TabListener , ViewPager.OnPageChangeListener{ int resId = {R.drawable.position0, R.drawable.position1, R.drawable.position2, R.drawable.position3, R.drawable.position4};
@Override public void onPageSelected(int position) { mActionBar.setSelectedNavigationItem(position); int resIdLenght = resId.length; if (position < 0 || position >= resIdLenght) return; int drawableId = resId[position]; mActionBar.setIcon(drawableId); }

}

        
Present in both answers; Present only in the new answer; Present only in the old answer;