Android 无法从库项目替代项目中的ProgressBar样式

Android 无法从库项目替代项目中的ProgressBar样式,android,android-styles,android-progressbar,Android,Android Styles,Android Progressbar,我已经在lib中编写了进度条的样式,现在想更改主项目中进度条的颜色以进行自定义 自由式 <style name="progressBar" parent="@style/Base.Widget.AppCompat.ProgressBar"> <item name="android:indeterminateDrawable">@drawable/progress</item> </style> @可提取/进度 主要风格 <st

我已经在lib中编写了进度条的样式,现在想更改主项目中进度条的颜色以进行自定义

自由式

<style name="progressBar" parent="@style/Base.Widget.AppCompat.ProgressBar">
    <item name="android:indeterminateDrawable">@drawable/progress</item>
</style>

@可提取/进度
主要风格

 <style name="progressBarOC" parent="@style/progressBar">
    <item name="android:indeterminateDrawable">@drawable/progress</item>
</style>

@可提取/进度
v21的风格

    <style name="progressBarOC" parent="@style/progressBar">
    <item name="colorAccent">@color/theme_color</item>
</style>

@颜色/主题颜色
progress.xml

<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%" android:pivotY="50%" android:fromDegrees="0"
android:toDegrees="1080">
<shape android:shape="ring" android:innerRadiusRatio="3"
    android:thicknessRatio="15" android:useLevel="false">
    <size android:width="60dip" android:height="60dip" />
    <gradient android:type="sweep" android:useLevel="false"
        android:startColor="@color/theme_color"
        android:endColor="@color/translucent_100"
        android:angle="0"
        />
</shape>


正在进行颜色设置。xml@KrishnaJ已经添加了“瘙痒改变你的主题颜色”和“半透明100颜色”,但它只影响棒棒糖前的版本。棒棒糖和更多的东西呢?你可以试试这个