Horizontal progressbar with custom color

activity_main.xml <progressbar android:id=”@+id/progressBar” style=”?android:progressBarStyleHorizontal” android:layout_width=”match_parent” android:layout_height=”1dp” android:layout_margin=”0dp” android:max=”100″ android:padding=”0dp” tools:progress=”40″ android:progressDrawable=”@drawable/progress_drawable” app:layout_collapseMode=”pin”/> MainActivity.java ProgressBar mProgressBar = (ProgressBar) findViewById(R.id.progressBar); //somewhere when scrollin mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override…