summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-08-19 01:04:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-19 01:04:58 +0000
commit0835f33a4de14d62c433b36d1b08daff9166e9b3 (patch)
treec231b8202325af36425aaa60798058aa4d6abf91 /packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java
parent394686efbb51e7c05e230c4ad3695fadc3aa85a0 (diff)
parent83eb6bb5d83d3994a3750b566a2109a049ab1388 (diff)
downloadframeworks_base-0835f33a4de14d62c433b36d1b08daff9166e9b3.zip
frameworks_base-0835f33a4de14d62c433b36d1b08daff9166e9b3.tar.gz
frameworks_base-0835f33a4de14d62c433b36d1b08daff9166e9b3.tar.bz2
Merge "Improve motion for wake-and-unlocking while pulsing" into mnc-dr-dev
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java
index d77e050..a6fc4bb 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java
@@ -34,6 +34,7 @@ public abstract class ExpandableOutlineView extends ExpandableView {
private final Rect mOutlineRect = new Rect();
protected final int mRoundedRectCornerRadius;
private boolean mCustomOutline;
+ private float mOutlineAlpha = 1f;
public ExpandableOutlineView(Context context, AttributeSet attrs) {
super(context, attrs);
@@ -50,6 +51,7 @@ public abstract class ExpandableOutlineView extends ExpandableView {
} else {
outline.setRoundRect(mOutlineRect, mRoundedRectCornerRadius);
}
+ outline.setAlpha(mOutlineAlpha);
}
});
}
@@ -66,6 +68,11 @@ public abstract class ExpandableOutlineView extends ExpandableView {
invalidateOutline();
}
+ protected void setOutlineAlpha(float alpha) {
+ mOutlineAlpha = alpha;
+ invalidateOutline();
+ }
+
protected void setOutlineRect(RectF rect) {
if (rect != null) {
setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);