From a020bf80f39370d5c0567f8a4de1b0608f64696b Mon Sep 17 00:00:00 2001 From: kr1stjans Date: Mon, 21 Nov 2016 13:34:32 +0100 Subject: [PATCH] Added custom material header background color setter --- .../in/srain/cube/views/ptr/header/MaterialHeader.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + } }