Example usage for android.widget ProgressBar getContext

List of usage examples for android.widget ProgressBar getContext

Introduction

In this page you can find the example usage for android.widget ProgressBar getContext.

Prototype

@ViewDebug.CapturedViewProperty
public final Context getContext() 

Source Link

Document

Returns the context the view is running in, through which it can access the current theme, resources, etc.

Usage

From source file:org.opensilk.common.ui.util.ThemeUtils.java

public static void themeProgressBar(ProgressBar progressBar, int colorAttr) {
    themeProgressBar2(progressBar, getThemeAttrColor(progressBar.getContext(), colorAttr));
}