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:13:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-19 01:13:32 +0000
commitebcd9d558f1d9e17b5b04d96b816dffb2d8c8d13 (patch)
treefe61bdaeb7bf6885e3663429ce2be3a46099bcc1 /packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java
parentcaa6cb3a2f8118df6e14862b5977d82b32771775 (diff)
parent0835f33a4de14d62c433b36d1b08daff9166e9b3 (diff)
downloadframeworks_base-ebcd9d558f1d9e17b5b04d96b816dffb2d8c8d13.zip
frameworks_base-ebcd9d558f1d9e17b5b04d96b816dffb2d8c8d13.tar.gz
frameworks_base-ebcd9d558f1d9e17b5b04d96b816dffb2d8c8d13.tar.bz2
am 0835f33a: Merge "Improve motion for wake-and-unlocking while pulsing" into mnc-dr-dev
* commit '0835f33a4de14d62c433b36d1b08daff9166e9b3': Improve motion for wake-and-unlocking while pulsing
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);