Android-skin-support
Android-skin-support copied to clipboard
Android-skin-support is an easy dynamic skin framework to use for Android, Only one line of code to integrate it. Android 换肤框架, 极低的学习成本, 极好的用户体验. "一行"代码就可以实现换肤, 你值得拥...
我按照demo步骤初始化换肤框架并尝试使用应用内换肤功能去替换组件的background,但是没有效果。加载换肤的onStart,onSuccess回调都能正常打印,求教为啥。。 Application里的代码: > Slog.DEBUG = BuildConfig.DEBUG SkinCompatManager.withoutActivity(this) .addInflater(SkinAppCompatViewInflater()) // 基础控件换肤 .addInflater(SkinMaterialViewInflater()) // material design .addInflater(SkinConstraintViewInflater()) // ConstraintLayout .addInflater(SkinCardViewInflater()) // CardView v7 .setSkinStatusBarColorEnable(true) // 关闭状态栏换肤 .loadSkin() AppCompatDelegate.setCompatVectorFromResourcesEnabled(true) build.gradle也加了 > sourceSets {...
ColorDrawable colorDrawable=new ColorDrawable(Color.red); 这种自己创建得Drawable 如何生效
```Java RelativeLayout loginLayout = findViewById(R.id.relativeLayout_login); SkinCompatView view = new SkinCompatView(this); int size = SizeUtils.dp2px(200); RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(size, size); view.setBackgroundResource(R.color.mine_bg_login); loginLayout.addView(view, mLoginLayout.getChildCount() - 1, layoutParams); ``` 如示例中的view,在加载新皮肤的时候,要怎么操作,也能参与到自动换肤,不用重启呢
颜色自动换了,但raw下的资源没有自动换新的,请问能支持吗?
homesilde_btn.xml 里面为 当换肤后背景颜色没变(white正常颜色为白,皮肤包颜色为黑)
[feature]直接支持androidx基础控件换肤 module:skin-androidx-app demo [fix]first_fragment 控件均使用androidx控件
目前项目在做启动优化,想把换肤初始化从 Application 里面移掉,不知道对于换肤功能有没有影响。
可以替换TextView的字体的颜色和大小吗