Skip to content Skip to sidebar Skip to footer

Why Setprogressbackgroundcolor Can Not Resolve Error?

In this example SwipeRefreshLayout swipeLayout; swipeLayout.setProgressBackgroundColor(android.R.color.holo_blue_bright); but in android studio I get this error : Can not Resolve

Solution 1:

Be sure to use latest support lib version (v21 at the time of writing). E.g. in gradle:

compile'com.android.support:support-v4:21.0.0'

Solution 2:

Make your you imported the SwipeRefreshLayout

import android.support.v4.widget.SwipeRefreshLayout;

and added the support library to your project.

Post a Comment for "Why Setprogressbackgroundcolor Can Not Resolve Error?"