code: protected TextView createDefaultTabView(Context context) {
          TextView textView = new TextView(context);
          textView.setGravity(Gravity.CENTER);
          textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, TAB_VIEW_TEXT_SIZE_SP);
          textView.setTypeface(Typeface.DEFAULT_BOLD);
          textView.setLayoutParams(new LinearLayout.LayoutParams(
                  ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
  
          TypedValue outValue = new TypedValue();
  
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
              getContext().getTheme().resolveAttribute(android.R.attr.selectableItemBackground,
                      outValue, true);
          }
  
          textView.setBackgroundResource(outValue.resourceId);
  
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
              textView.setAllCaps(true);
          }
  
          int padding = (int) (TAB_VIEW_PADDING_DIPS * getResources().getDisplayMetrics().density);
          textView.setPadding(padding, padding, padding, padding);
  
          return textView;
      }
docs: Create a default view to be used for tabs. This is called if a custom tab view is not set via
  {@link #setCustomTabView(int, int)}.