Answers for "how to change progress bar color in android programmatically"

0

change status bar color android programmatically

public void statuscolor(){
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            Window window = getWindow();
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
            window.setStatusBarColor(Color.parseColor(getPreferences().getString(Constant.SECONDARY_COLOR, Constant.SECONDARY_COLOR)));
        }
    }
Posted by: Guest on November-17-2020
0

how to change color of circular progress bar in android

<style name="RedAccent" parent="ThemeOverlay.AppCompat.Light">
    <item name="colorAccent">#F00</item>
</style>
Posted by: Guest on October-13-2020
0

how to change color of circular progress bar in android

<ProgressBar
            android:id="@+id/progress_bar"
            android:layout_width="32dp"
            android:layout_height="32dp"
            android:theme="@style/RedAccent"/>
Posted by: Guest on October-13-2020

Code answers related to "how to change progress bar color in android programmatically"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language