1313import android .view .View ;
1414import android .widget .Toast ;
1515
16+ import com .devspark .robototextview .util .RobotoTypefaceManager ;
1617import com .google .android .gms .common .ConnectionResult ;
1718import com .google .android .gms .common .GooglePlayServicesUtil ;
1819import com .hackthenorth .android .R ;
1920import com .hackthenorth .android .base .BaseActivity ;
2021import com .hackthenorth .android .framework .GCMRegistrationManager ;
2122import com .hackthenorth .android .framework .VisibilityManager ;
23+ import com .hackthenorth .android .ui .component .PagerTitleStrip ;
2224import com .hackthenorth .android .ui .component .TextView ;
2325import com .hackthenorth .android .ui .settings .SettingsActivity ;
2426import com .readystatesoftware .systembartint .SystemBarTintManager ;
@@ -34,6 +36,7 @@ public class MainActivity extends BaseActivity {
3436 private TextView mTitle ;
3537
3638 private ViewPagerAdapter mViewPagerAdapter ;
39+ private PagerTitleStrip mViewPagerTabs ;
3740 private ViewPager mViewPager ;
3841
3942 @ Override
@@ -66,6 +69,11 @@ public void onCreate(Bundle savedInstanceState) {
6669 mViewPager = (ViewPager ) findViewById (R .id .pager );
6770 mViewPager .setAdapter (mViewPagerAdapter );
6871
72+ mViewPagerTabs = (PagerTitleStrip ) findViewById (R .id .pager_title_strip );
73+ mViewPagerTabs .setTypeface (RobotoTypefaceManager .obtainTypeface (
74+ this , RobotoTypefaceManager .Typeface .ROBOTO_REGULAR ), 0 );
75+ mViewPagerTabs .setViewPager (mViewPager );
76+
6977 if (checkPlayServices ()) {
7078 if (GCMRegistrationManager .getRegistrationId (this ) == null ) {
7179 // Register with GCM
0 commit comments