save state for recreating map view fix review comments unit test covering default value for fading and setting a new value fixup setter, fix default value
120 lines
5.4 KiB
XML
120 lines
5.4 KiB
XML
<resources>
|
|
<!-- these are public -->
|
|
<declare-styleable name="MapView">
|
|
|
|
<!--Configuration-->
|
|
<attr name="access_token" format="string" />
|
|
<attr name="style_url" format="string" />
|
|
<attr name="api_base_url" format="string" />
|
|
|
|
<!--Camera-->
|
|
<attr name="center_longitude" format="float" />
|
|
<attr name="center_latitude" format="float" />
|
|
<attr name="zoom" format="float" />
|
|
<attr name="direction" format="float" />
|
|
<attr name="tilt" format="float" />
|
|
|
|
<!--Zoom-->
|
|
<attr name="zoom_max" format="float" />
|
|
<attr name="zoom_min" format="float" />
|
|
|
|
<!--Gestures-->
|
|
<attr name="zoom_enabled" format="boolean" />
|
|
<attr name="scroll_enabled" format="boolean" />
|
|
<attr name="rotate_enabled" format="boolean" />
|
|
<attr name="tilt_enabled" format="boolean" />
|
|
<attr name="debug_active" format="boolean" />
|
|
|
|
<!--UI-Controls-->
|
|
<attr name="zoom_controls_enabled" format="boolean" />
|
|
|
|
<!--MyLocation-->
|
|
<attr name="my_location_enabled" format="boolean" />
|
|
<attr name="my_location_foreground" format="reference" />
|
|
<attr name="my_location_foreground_bearing" format="reference" />
|
|
<attr name="my_location_foreground_tint" format="color" />
|
|
<attr name="my_location_background" format="reference" />
|
|
<attr name="my_location_background_tint" format="color" />
|
|
<attr name="my_location_background_left" format="dimension" />
|
|
<attr name="my_location_background_top" format="dimension" />
|
|
<attr name="my_location_background_right" format="dimension" />
|
|
<attr name="my_location_background_bottom" format="dimension" />
|
|
<attr name="my_location_accuracy_tint" format="color" />
|
|
<attr name="my_location_accuracy_alpha" format="integer" />
|
|
|
|
<!--Compass-->
|
|
<attr name="compass_enabled" format="boolean" />
|
|
<attr name="compass_gravity">
|
|
<flag name="top" value="0x30" />
|
|
<flag name="bottom" value="0x50" />
|
|
<flag name="left" value="0x03" />
|
|
<flag name="right" value="0x05" />
|
|
<flag name="center_vertical" value="0x10" />
|
|
<flag name="fill_vertical" value="0x70" />
|
|
<flag name="center_horizontal" value="0x01" />
|
|
<flag name="fill_horizontal" value="0x07" />
|
|
<flag name="center" value="0x11" />
|
|
<flag name="fill" value="0x77" />
|
|
<flag name="clip_vertical" value="0x80" />
|
|
<flag name="clip_horizontal" value="0x08" />
|
|
<flag name="start" value="0x00800003" />
|
|
<flag name="end" value="0x00800005" />
|
|
</attr>
|
|
<attr name="compass_margin_left" format="dimension" />
|
|
<attr name="compass_margin_top" format="dimension" />
|
|
<attr name="compass_margin_right" format="dimension" />
|
|
<attr name="compass_margin_bottom" format="dimension" />
|
|
<attr name="compass_fade_facing_north" format="boolean" />
|
|
|
|
<!--Logo-->
|
|
<attr name="logo_gravity">
|
|
<flag name="top" value="0x30" />
|
|
<flag name="bottom" value="0x50" />
|
|
<flag name="left" value="0x03" />
|
|
<flag name="right" value="0x05" />
|
|
<flag name="center_vertical" value="0x10" />
|
|
<flag name="fill_vertical" value="0x70" />
|
|
<flag name="center_horizontal" value="0x01" />
|
|
<flag name="fill_horizontal" value="0x07" />
|
|
<flag name="center" value="0x11" />
|
|
<flag name="fill" value="0x77" />
|
|
<flag name="clip_vertical" value="0x80" />
|
|
<flag name="clip_horizontal" value="0x08" />
|
|
<flag name="start" value="0x00800003" />
|
|
<flag name="end" value="0x00800005" />
|
|
</attr>
|
|
<attr name="logo_margin_left" format="dimension" />
|
|
<attr name="logo_margin_top" format="dimension" />
|
|
<attr name="logo_margin_right" format="dimension" />
|
|
<attr name="logo_margin_bottom" format="dimension" />
|
|
<attr name="logo_enabled" format="boolean" />
|
|
|
|
<!--Attribution-->
|
|
<attr name="attribution_gravity">
|
|
<flag name="top" value="0x30" />
|
|
<flag name="bottom" value="0x50" />
|
|
<flag name="left" value="0x03" />
|
|
<flag name="right" value="0x05" />
|
|
<flag name="center_vertical" value="0x10" />
|
|
<flag name="fill_vertical" value="0x70" />
|
|
<flag name="center_horizontal" value="0x01" />
|
|
<flag name="fill_horizontal" value="0x07" />
|
|
<flag name="center" value="0x11" />
|
|
<flag name="fill" value="0x77" />
|
|
<flag name="clip_vertical" value="0x80" />
|
|
<flag name="clip_horizontal" value="0x08" />
|
|
<flag name="start" value="0x00800003" />
|
|
<flag name="end" value="0x00800005" />
|
|
</attr>
|
|
<attr name="attribution_margin_left" format="dimension" />
|
|
<attr name="attribution_margin_top" format="dimension" />
|
|
<attr name="attribution_margin_right" format="dimension" />
|
|
<attr name="attribution_margin_bottom" format="dimension" />
|
|
<attr name="attribution_enabled" format="boolean" />
|
|
<attr name="attribution_tint" format="color" />
|
|
|
|
<!-- Deprecated to use TextureView-->
|
|
<attr name="texture_mode" format="boolean" />
|
|
</declare-styleable>
|
|
</resources>
|