- @Override
- // Get the count of the number of tabs.
- public int getCount() {
- return 8;
- }
-
- @Override
- // Get the name of each tab. Tab numbers start at 0.
- public CharSequence getPageTitle(int tab) {
- switch (tab) {
- case 0:
- return getString(R.string.overview);
-
- case 1:
- return getString(R.string.javascript);
-
- case 2:
- return getString(R.string.local_storage);
-
- case 3:
- return getString(R.string.user_agent);
-
- case 4:
- return getString(R.string.domain_settings);
-
- case 5:
- return getString(R.string.ssl_certificates);
+ // Get a handle for the view pager and the tab layout.
+ ViewPager aboutViewPager = findViewById(R.id.guide_viewpager);
+ TabLayout aboutTabLayout = findViewById(R.id.guide_tablayout);