BasicCurrentLocationView(context: Context!)
Constructor that uses context to initialize view, click actions and set image resource.
context
- Context!: view context.
BasicCurrentLocationView(context: Context!, attrs: AttributeSet!)
Custom constructor that uses context to initialize view, click actions and set image resource. Also it allows to provide custom set of attributes.
context
- Context!: view context.
attrs
- AttributeSet!: set of custom attributes.
BasicCurrentLocationView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)
Custom constructor that uses context to initialize view, click actions and set image resource. Also it allows to provide custom set of attributes and a reference to default style resource.
context
- Context!: view context.
attrs
- AttributeSet!: set of custom attributes.
defStyleAttr
- Int: attribute that contains a reference to a style resource, that supplies default values for styled attributes. Should be different than 0 in this constructor, otherwise use BasicCurrentLocationView#BasicCurrentLocationView(Context, AttributeSet)
.