createFromAttributes

Construct a new Location Component Options class using the attributes found within a style resource. It's important to note that you only need to define the attributes you plan to change and can safely ignore the other attributes which will be set to their default value.

Return

a new LocationComponentOptions object with the settings you defined in your style resource

Parameters

context

your activity's context used for acquiring resources

styleRes

the style id where your custom attributes are defined