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 IScrollableView4

interface IScrollableView4
Extends IScrollableView3 IScrollableView4 interface extends IScrollableView3 and adds control over focus-driven auto-scrolling behavior.

Methods

setAutoScrollOnFocus()

void setAutoScrollOnFocus(bool enabled)
Enables or disables auto-scrolling on focus. When enabled, the scrollable view automatically scrolls to bring a focused descendant child into the visible viewport. When disabled, gaining focus on a descendant does not trigger any automatic scroll adjustment. Note: If scrolling is disabled via IScrollableView3::setScrollEnabled, a focused descendant will not be auto-scrolled regardless of the value passed here.

Parameters

enabled
bool — Required true to enable auto-scrolling on focus, false to disable it. The default value is false.
Last modified on October 29, 2026