code: private void obtainDividerDecoration() {
          int dividerColor;
  
          try {
              dividerColor = ThemeUtil.getColor(getActivity(), R.attr.dividerColor);
          } catch (NotFoundException e) {
              dividerColor =
                      ContextCompat.getColor(getActivity(), R.color.preference_divider_color_light);
          }
  
          this.dividerDecoration.setDividerColor(dividerColor);
          this.dividerDecoration.setDividerHeight(DisplayUtil.dpToPixels(getActivity(), 1));
      }
docs: Obtains the appearance of the dividers, which are shown above preference categories, from the
  activity's theme.