diff --git a/sample/src/com/astuetz/viewpager/extensions/sample/MainActivity.java b/sample/src/com/astuetz/viewpager/extensions/sample/MainActivity.java index 5ba1ae14..673d07cc 100644 --- a/sample/src/com/astuetz/viewpager/extensions/sample/MainActivity.java +++ b/sample/src/com/astuetz/viewpager/extensions/sample/MainActivity.java @@ -21,11 +21,8 @@ import android.graphics.drawable.Drawable; import android.graphics.drawable.LayerDrawable; import android.graphics.drawable.TransitionDrawable; -import android.os.Build; import android.os.Bundle; -import android.os.Handler; import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; @@ -73,6 +70,7 @@ protected void onCreate(Bundle savedInstanceState) { final int pageMargin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 4, getResources() .getDisplayMetrics()); pager.setPageMargin(pageMargin); + pager.setCurrentItem(1); changeColor(getResources().getColor(R.color.green)); tabs.setOnTabReselectedListener(new PagerSlidingTabStrip.OnTabReselectedListener() {