本文主要参考博客:https://www.cnblogs.com/tianzhijiexian/p/3854346.html
在移植原来项目时候有几个坑,需要注意下,否则编译不过:
1. androidManifest.xml里面需要使用:android:theme="@style/AppTheme"
这个属性在style.xml里面有设定。
2. 在使用的时候需要使用自定义的属性,因此需要修改为:xmlns:android_custom="http://schemas.android.com/apk/res-auto"
否则自定义的属性无法导入进来,无法在xml中声名使用
3. 记得将使用包名替换成自己工程里面的:max){ progress = max; } if(progress关注打赏