ViewOutlineProvider
public
abstract
class
ViewOutlineProvider
extends Object
| java.lang.Object | |
| ↳ | android.view.ViewOutlineProvider |
Interface by which a View builds its Outline, used for shadow casting and clipping.
Summary
Fields | |
|---|---|
public
static
final
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. |
public
static
final
ViewOutlineProvider |
BOUNDS
Maintains the outline of the View to match its rectangular bounds,
at |
public
static
final
ViewOutlineProvider |
PADDED_BOUNDS
Maintains the outline of the View to match its rectangular padded bounds,
at |
Public constructors | |
|---|---|
ViewOutlineProvider()
|
|
Public methods | |
|---|---|
abstract
void
|
getOutline(View view, Outline outline)
Called to get the provider to populate the Outline. |
Inherited methods | |
|---|---|
From
class
java.lang.Object
| |
Fields
BACKGROUND
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.
See also:
BOUNDS
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.
PADDED_BOUNDS
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
Public methods
getOutline
void getOutline (View view, Outline outline)
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 invalidateOutline() is called
explicitly.
The input outline is empty and has an alpha of 1.0f.
| Parameters | |
|---|---|
view |
View:
The view building the outline. |
outline |
Outline:
The empty outline to be populated.
|
Annotations
Interfaces
- ActionMode.Callback
- ActionProvider.VisibilityListener
- Choreographer.FrameCallback
- CollapsibleActionView
- ContextMenu
- ContextMenu.ContextMenuInfo
- GestureDetector.OnContextClickListener
- GestureDetector.OnDoubleTapListener
- GestureDetector.OnGestureListener
- InputQueue.Callback
- KeyEvent.Callback
- LayoutInflater.Factory
- LayoutInflater.Factory2
- LayoutInflater.Filter
- Menu
- MenuItem
- MenuItem.OnActionExpandListener
- MenuItem.OnMenuItemClickListener
- PixelCopy.OnPixelCopyFinishedListener
- ScaleGestureDetector.OnScaleGestureListener
- SubMenu
- SurfaceHolder
- SurfaceHolder.Callback
- SurfaceHolder.Callback2
- TextureView.SurfaceTextureListener
- View.OnApplyWindowInsetsListener
- View.OnAttachStateChangeListener
- View.OnClickListener
- View.OnContextClickListener
- View.OnCreateContextMenuListener
- View.OnDragListener
- View.OnFocusChangeListener
- View.OnGenericMotionListener
- View.OnHoverListener
- View.OnKeyListener
- View.OnLayoutChangeListener
- View.OnLongClickListener
- View.OnScrollChangeListener
- View.OnSystemUiVisibilityChangeListener
- View.OnTouchListener
- ViewGroup.OnHierarchyChangeListener
- ViewManager
- ViewParent
- ViewStub.OnInflateListener
- ViewTreeObserver.OnDrawListener
- ViewTreeObserver.OnGlobalFocusChangeListener
- ViewTreeObserver.OnGlobalLayoutListener
- ViewTreeObserver.OnPreDrawListener
- ViewTreeObserver.OnScrollChangedListener
- ViewTreeObserver.OnTouchModeChangeListener
- ViewTreeObserver.OnWindowAttachListener
- ViewTreeObserver.OnWindowFocusChangeListener
- Window.Callback
- Window.OnFrameMetricsAvailableListener
- Window.OnRestrictedCaptionAreaChangedListener
- WindowManager
Classes
- AbsSavedState
- ActionMode
- ActionMode.Callback2
- ActionProvider
- Choreographer
- ContextThemeWrapper
- Display
- Display.HdrCapabilities
- Display.Mode
- DragAndDropPermissions
- DragEvent
- FocusFinder
- FrameMetrics
- FrameStats
- GestureDetector
- GestureDetector.SimpleOnGestureListener
- Gravity
- HapticFeedbackConstants
- InputDevice
- InputDevice.MotionRange
- InputEvent
- InputQueue
- KeyboardShortcutGroup
- KeyboardShortcutInfo
- KeyCharacterMap
- KeyCharacterMap.KeyData
- KeyEvent
- KeyEvent.DispatcherState
- LayoutInflater
- MenuInflater
- MotionEvent
- MotionEvent.PointerCoords
- MotionEvent.PointerProperties
- OrientationEventListener
- OrientationListener
- PixelCopy
- PointerIcon
- ScaleGestureDetector
- ScaleGestureDetector.SimpleOnScaleGestureListener
- SearchEvent
- SoundEffectConstants
- Surface
- SurfaceView
- TextureView
- TouchDelegate
- VelocityTracker
- View
- View.AccessibilityDelegate
- View.BaseSavedState
- View.DragShadowBuilder
- View.MeasureSpec
- ViewAnimationUtils
- ViewConfiguration
- ViewDebug
- ViewGroup
- ViewGroup.LayoutParams
- ViewGroup.MarginLayoutParams
- ViewGroupOverlay
- ViewOutlineProvider
- ViewOverlay
- ViewPropertyAnimator
- ViewStructure
- ViewStub
- ViewTreeObserver
- Window
- WindowAnimationFrameStats
- WindowContentFrameStats
- WindowId
- WindowId.FocusObserver
- WindowInsets
- WindowManager.LayoutParams
Enums
Exceptions


