CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2016-05-09
by Krishna

Original Post

Original - Posted on 2014-05-20
by Farouk Touzi



            
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); } }
It could be a start for you :)

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