AdaptiveSystemUiHelper
A helper class for a system UI that adapts its view depending on the size that it's given, offering an adaptive system UI.
A 'view variant' of type T defines the different possible variations of the system UI view. For example the view could have different orientations (HORIZONTAL, VERTICAL), different sizes (SMALL, MEDIUM, LARGE), or any combination of those variations.
Parameters
The enum type of view variant.
The context of the system UI.
Called at construction time, uses the measured display size to determine which view variant to use.
Provides an inflate function based on the view variant.
A function that operates on the view data binding, for instance to set variables.
Properties
The ViewFactory that the SystemUiHost should use to create views. Can be used directly from the system UI host with: