且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Proguard混淆后,CardView阴影未出现在棒棒糖中

更新时间:2023-10-03 16:17:52

在库包中进行了一些潜水之后,我编写了一条规则来保护android.support.**上的所有内容,现在我终于只保护了android.support. .v7.widget.RoundRectDrawable.

After some diving in the library packages, I wrote a rule that protected everything at android.support.** and now I'm finally protecting just android.support.v7.widget.RoundRectDrawable.

因此,如果您对此有疑问,只需在您的proguard配置中添加下一条规则即可:

So if you are having troubles with this, just add the next rule at your proguard config:

-keep class android.support.v7.widget.RoundRectDrawable { *; }