Stay organized with collections
Save and categorize content based on your preferences.
ShadowViewDelegate
public
interface
ShadowViewDelegate
com.google.android.material.shadow.ShadowViewDelegate
|
Delegate interface that can be used to facilitate rendering of shadows pre-lollipop.
Summary
Public methods
getRadius
public abstract float getRadius ()
isCompatPaddingEnabled
public abstract boolean isCompatPaddingEnabled ()
setBackgroundDrawable
public abstract void setBackgroundDrawable (Drawable background)
Parameters |
background |
Drawable |
setShadowPadding
public abstract void setShadowPadding (int left,
int top,
int right,
int bottom)
Parameters |
left |
int |
top |
int |
right |
int |
bottom |
int |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ShadowViewDelegate\n==================\n\n\n`\npublic\n\n\ninterface\nShadowViewDelegate\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------|\n| com.google.android.material.shadow.ShadowViewDelegate |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDelegate interface that can be used to facilitate rendering of shadows pre-lollipop.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract float` | ` `[getRadius](/reference/com/google/android/material/shadow/ShadowViewDelegate#getRadius())`() ` |\n| ` abstract boolean` | ` `[isCompatPaddingEnabled](/reference/com/google/android/material/shadow/ShadowViewDelegate#isCompatPaddingEnabled())`() ` |\n| ` abstract void` | ` `[setBackgroundDrawable](/reference/com/google/android/material/shadow/ShadowViewDelegate#setBackgroundDrawable(android.graphics.drawable.Drawable))`(Drawable background) ` |\n| ` abstract void` | ` `[setShadowPadding](/reference/com/google/android/material/shadow/ShadowViewDelegate#setShadowPadding(int,%20int,%20int,%20int))`(int left, int top, int right, int bottom) ` |\n\nPublic methods\n--------------\n\n### getRadius\n\n```\npublic abstract float getRadius ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n### isCompatPaddingEnabled\n\n```\npublic abstract boolean isCompatPaddingEnabled ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### setBackgroundDrawable\n\n```\npublic abstract void setBackgroundDrawable (Drawable background)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|-------------------|\n| `background` | `Drawable` \u003cbr /\u003e |\n\n### setShadowPadding\n\n```\npublic abstract void setShadowPadding (int left, \n int top, \n int right, \n int bottom)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|--------------|\n| `left` | `int` \u003cbr /\u003e |\n| `top` | `int` \u003cbr /\u003e |\n| `right` | `int` \u003cbr /\u003e |\n| `bottom` | `int` \u003cbr /\u003e |"]]