Exemple #1
0
    @Override
    @SuppressWarnings("deprecation") // setBackgroundDrawable deprecated by API level 16
    public void onLightweightThemeChanged() {
      final int background = getResources().getColor(R.color.background_tabs);
      final LightweightThemeDrawable drawable = mTheme.getColorDrawable(this, background);
      if (drawable == null) return;

      drawable.setAlpha(34, 34);
      setBackgroundDrawable(drawable);
    }