android.graphics.drawable.Drawable.applyTheme()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(230)

本文整理了Java中android.graphics.drawable.Drawable.applyTheme()方法的一些代码示例,展示了Drawable.applyTheme()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Drawable.applyTheme()方法的具体详情如下:
包路径:android.graphics.drawable.Drawable
类名称:Drawable
方法名:applyTheme

Drawable.applyTheme介绍

暂无

代码示例

代码示例来源:origin: ZieIony/Carbon

@Override
public void applyTheme(Drawable drawable, Resources.Theme t) {
  drawable.applyTheme(t);
}

代码示例来源:origin: ZieIony/Carbon

@Override
public void applyTheme(Drawable drawable, Resources.Theme t) {
  drawable.applyTheme(t);
}

代码示例来源:origin: DreaminginCodeZH/MaterialProgressBar

@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
final void applyTheme(Theme theme) {
  if (theme != null) {
    createAllFutures();
    final int count = mNumChildren;
    final Drawable[] drawables = mDrawables;
    for (int i = 0; i < count; i++) {
      if (drawables[i] != null && drawables[i].canApplyTheme()) {
        drawables[i].applyTheme(theme);
        // Update cached mask of child changing configurations.
        mChildrenChangingConfigurations |= drawables[i].getChangingConfigurations();
      }
    }
    updateDensity(theme.getResources());
  }
}

代码示例来源:origin: MCMrARM/revolution-irc

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void applyTheme(@NonNull Resources.Theme theme) {
  mDrawable.applyTheme(theme);
}

代码示例来源:origin: com.albedinsky.android/ui

/**
 */
@Override
@SuppressLint("NewApi")
public void applyTheme(@NonNull Resources.Theme theme) {
  if (UiConfig.MATERIALIZED) mDrawable.applyTheme(theme);
}

代码示例来源:origin: com.albedinsky.android/ui-graphics-base

/**
 */
@Override
@SuppressLint("NewApi")
public void applyTheme(@NonNull Resources.Theme theme) {
  if (UiConfig.MATERIALIZED) mDrawable.applyTheme(theme);
}

代码示例来源:origin: com.albedinsky.android/ui-graphics

/**
 */
@Override
@SuppressLint("NewApi")
public void applyTheme(@NonNull Resources.Theme theme) {
  if (UiConfig.MATERIALIZED) mDrawable.applyTheme(theme);
}

代码示例来源:origin: lypeer/GoogleClock

drawable.applyTheme(wrapper.getTheme());

相关文章