Stay organized with collections
Save and categorize content based on your preferences.
RemoteViewOutlineProvider
class RemoteViewOutlineProvider : ViewOutlineProvider
OutlineProvider for a view with a radius set by setViewOutlinePreferredRadius(int,float,int)
.
Summary
Public methods |
Unit |
Called to get the provider to populate the Outline.
|
Float |
Returns the corner radius used when providing the view outline.
|
Inherited properties |
From class ViewOutlineProvider
ViewOutlineProvider! |
BACKGROUND
Default outline provider for Views, which queries the Outline from the View's background, or generates a 0 alpha, rectangular Outline the size of the View if a background isn't present.
|
ViewOutlineProvider! |
BOUNDS
Maintains the outline of the View to match its rectangular bounds, at 1.0f alpha. This can be used to enable Views that are opaque but lacking a background cast a shadow.
|
ViewOutlineProvider! |
PADDED_BOUNDS
Maintains the outline of the View to match its rectangular padded bounds, at 1.0f alpha. This can be used to enable Views that are opaque but lacking a background cast a shadow.
|
|
Public constructors
RemoteViewOutlineProvider
RemoteViewOutlineProvider(radius: Float)
Public methods
getOutline
fun getOutline(
view: View,
outline: Outline
): Unit
Called to get the provider to populate the Outline. This method will be called by a View when its owned Drawables are invalidated, when the View's size changes, or if View#invalidateOutline()
is called explicitly. The input outline is empty and has an alpha of 1.0f
.
Parameters |
view |
View: This value cannot be null . |
outline |
Outline: This value cannot be null . |
getRadius
fun getRadius(): Float
Returns the corner radius used when providing the view outline.
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 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-04 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 2024-04-04 UTC."]]