@Override
public void onCreate() {
super.onCreate();
// SkinCircleImageViewManager.init(this);
// SkinMaterialManager.init(this);
// SkinConstraintManager.init(this);
// SkinCardViewManager.init(this);
// SkinFlycoTabLayoutManager.init(this);
// SkinCompatManager.init(this).loadSkin();
// SkinCompatManager.init(this)
SkinCompatManager.withoutActivity(this)
.addStrategy(new CustomSDCardLoader()) // 自定义加载策略,指定SDCard路径
.addInflater(new SkinMaterialViewInflater()) // material design
.addInflater(new SkinConstraintViewInflater()) // ConstraintLayout
.addInflater(new SkinCardViewInflater()) // CardView v7
.addInflater(new SkinCircleImageViewInflater()) // hdodenhof/CircleImageView
.addInflater(new SkinFlycoTabLayoutInflater()) // H07000223/FlycoTabLayout
// .setSkinStatusBarColorEnable(false) // 关闭状态栏换肤
// .setSkinWindowBackgroundEnable(false) // 关闭windowBackground换肤
// .setSkinAllActivityEnable(false) // true: 默认所有的Activity都换肤; false: 只有实现SkinCompatSupportable接口的Activity换肤
.loadSkin();
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
App.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:Android-skin-support
作者:
评论列表
文章目录