Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IView6

interface IView6
Extends IView5 This interface extends IView5 with additional functionalities to set and get the zIndex for this view. Like its predecessors, all methods of this interface must be called from the UI thread.

Methods

setZIndex()

void setZIndex(float zIndex)
This API sets the zIndex of the view. The zIndex property controls a view’s visual stacking order along the depth axis: among overlapping sibling views under the same direct parent, a higher zIndex is rendered above a lower one. If two views have the same zIndex, the view that is added at an index greater than the other in the sibling array is drawn on top. A parent view will always be drawn before any child view, even if the parent view’s zIndex is higher than its children’s. The zIndex property can also be negative. By default the zIndex will be zero. Note: The zIndex property does not apply to the stacking order of the IWindow associated with an ISurfaceView. This is because the rendering order of the media surfaces is not governed by the standard view hierarchy.

Parameters

zIndex
float — Required Value of the zIndex property for this view.

getZIndex()

float getZIndex()
Returns the zIndex of this view.

Returns

float the zIndex of this view.
Last modified on October 29, 2026