diff --git a/ptr-lib/src/in/srain/cube/views/ptr/header/MaterialHeader.java b/ptr-lib/src/in/srain/cube/views/ptr/header/MaterialHeader.java index 322a363..b918b5d 100644 --- a/ptr-lib/src/in/srain/cube/views/ptr/header/MaterialHeader.java +++ b/ptr-lib/src/in/srain/cube/views/ptr/header/MaterialHeader.java @@ -179,4 +179,12 @@ public void onUIPositionChange(PtrFrameLayout frame, boolean isUnderTouch, byte invalidate(); } } + + /** + * Set custom material header background colorg. + * @param color + */ + public void setCustomMaterialHeaderBackground(int color) { + mDrawable.setBackgroundColor(color); + } }