本文整理了Java中android.graphics.drawable.Drawable.applyTheme()
方法的一些代码示例,展示了Drawable.applyTheme()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Drawable.applyTheme()
方法的具体详情如下:
包路径:android.graphics.drawable.Drawable
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!