diff options
| author | Mark Renouf <mrenouf@google.com> | 2019-05-13 15:53:18 -0400 |
|---|---|---|
| committer | Mark Renouf <mrenouf@google.com> | 2019-05-16 11:22:25 -0400 |
| commit | 34d04f36c30ff5cc2cb726d614a3bd8315985bc8 (patch) | |
| tree | 19e550be1b84a60bbbf66767a126227a2ab7af40 /core/java/android/app/ActivityView.java | |
| parent | e6ffb72e557572c5b7c259ae78058a7daad51ebb (diff) | |
Adds setCornerRadius to ActivityView & SurfaceView
Applies corner radius to Bubbles when expanded, based on
dialogCornerRadius theme attribute.
Test: manual -- Enable Bubbles, add one and expand, observe corners
Bug: 123545569
Change-Id: I88162a974534786b4ac8bed4e0fa1302bded9096
Diffstat (limited to 'core/java/android/app/ActivityView.java')
| -rw-r--r-- | core/java/android/app/ActivityView.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityView.java b/core/java/android/app/ActivityView.java index 864af8c60b32..4771f9f6ad04 100644 --- a/core/java/android/app/ActivityView.java +++ b/core/java/android/app/ActivityView.java @@ -189,6 +189,17 @@ public class ActivityView extends ViewGroup { } /** + * Sets the corner radius for the Activity displayed here. The corners will be + * cropped from the window painted by the contained Activity. + * + * @param cornerRadius the radius for the corners, in pixels + * @hide + */ + public void setCornerRadius(float cornerRadius) { + mSurfaceView.setCornerRadius(cornerRadius); + } + + /** * Launch a new activity into this container. * <p>Activity resolved by the provided {@link Intent} must have * {@link android.R.attr#resizeableActivity} attribute set to {@code true} in order to be |
