CompassView

interface CompassView

Interface for compass view.

The compass view implementation class should implement both the CompassView interface and a View class(e.g ImageView).

Functions

Link copied to clipboard
abstract fun requestLayout()

Call this when something has changed which has invalidated the layout of this view. This will schedule a layout pass of the view tree.

Link copied to clipboard
abstract fun setCompassAlpha(float: Float)

Set the alpha value of the compass.

Link copied to clipboard
abstract fun setCompassMargins(@Px left: Int, @Px top: Int, @Px right: Int, @Px bottom: Int)

Set the margins of the compass view.

Properties

Link copied to clipboard
abstract var compassGravity: Int

Returns the gravity value of the CompassView.

Link copied to clipboard
abstract var compassImage: Drawable

The CompassView image as a Drawable.

Link copied to clipboard
abstract var compassRotation: Float

The direction of the CompassView.

Link copied to clipboard

Whether the compass view is enabled.

Link copied to clipboard

Whether the compass view is visible.

Inheritors

Link copied to clipboard