title: android studio - change font in all Text View in View Pager
body: <p>I have ViewPager who include four layouts (each other is the same: ImageView and two TextViews control):</p>
  
  <pre><code>view_pager = (ViewPager) findViewById(R.id.view_pager);
  
  layouts = new int[] {
              R.layout.activity_screen_walk_1,
              R.layout.activity_screen_walk_2,
              R.layout.activity_screen_walk_3,
              R.layout.activity_screen_walk_4
          };
  
  viewPageAdapter = new ViewPageAdapter();
  view_pager.setAdapter(viewPageAdapter);
  view_pager.addOnPageChangeListener(viewPagerPageChangeListener);
  </code></pre>
  
  <p>This code it ok - view pager is displayed and workong fine. But I want change font in all Text Views in layouts in view pager.</p>
  
  <pre><code>Typeface myFontBold = Typeface.createFromAsset(getAssets(), "fonts/Oswald-Bold.ttf");
  
  
  for (int count=0; count &lt; view_pager.getChildCount(); count++){
      Toast.makeText(MainActivity.this, "ppp", Toast.LENGTH_SHORT).show();
      View view = view_pager.getChildAt(count);
      if(view instanceof TextView){
          ((TextView)view).setTypeface(myFontBold);
      }
  }
  </code></pre>
  
  <p>But this dosn't work...
  Help me, please.
  Regards
  Marcin</p>