public class

ArcGISTitleView

extends RelativeLayout
implements PopupRefreshable
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ com.esri.android.map.popup.ArcGISTitleView

Class Overview

Default view to display a popup title.
It displays a swatch (if applicable), the title, the feature editing information (if applicable) and location information (if available)

Summary

[Expand]
Inherited Constants
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
Fields
protected TextView mEditInfo
protected TextView mGeometryInfo
protected Symbol mSymbol
protected ImageView mSymbolView
protected TextView mTitle
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ArcGISTitleView(Context context, Popup popup, MapView mapView)
Constructor taking a Context, a Popup and a MapView.
Public Methods
void applyStyle(ArcGISPopupStyle style, ArcGISPopupStyle.STYLE_ELEMENT styleElement)
MapView getMapView()
Set<ArcGISPopupStyle.STYLE_ELEMENT> getRegisteredStyle()
Symbol getSymbol()
Get the symbol.
void refresh()
Refresh the view.
void setEditInfo(String editInfo)
Sets the edit info.
void setGeometryInfo(String geometryInfo)
Sets the geometry info.
void setMapView(MapView mapView)
void setSymbol(Bitmap symbol)
Sets the symbol.
void setSymbol(int symbolResourceId)
Sets the symbol.
void setSymbol(Drawable symbol)
Sets the symbol.
void setTitle(String title)
Sets the title.
[Expand]
Inherited Methods
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface com.esri.android.map.popup.PopupRefreshable

Fields

protected TextView mEditInfo

protected TextView mGeometryInfo

protected Symbol mSymbol

protected ImageView mSymbolView

protected TextView mTitle

Public Constructors

public ArcGISTitleView (Context context, Popup popup, MapView mapView)

Constructor taking a Context, a Popup and a MapView.
The map view can be null and if so, the swatch won't be able to be generated from a symbol.

Parameters
context Context: the context
popup Popup: the popup
mapView MapView: the map view

Public Methods

public void applyStyle (ArcGISPopupStyle style, ArcGISPopupStyle.STYLE_ELEMENT styleElement)

Parameters
style ArcGISPopupStyle
styleElement ArcGISPopupStyle.STYLE_ELEMENT

public MapView getMapView ()

Returns
MapView the mMapView

public Set<ArcGISPopupStyle.STYLE_ELEMENT> getRegisteredStyle ()

public Symbol getSymbol ()

Get the symbol.

Returns
Symbol the symbol.

public void refresh ()

Refresh the view.

public void setEditInfo (String editInfo)

Sets the edit info.

Parameters
editInfo String: the edits the info

public void setGeometryInfo (String geometryInfo)

Sets the geometry info.

Parameters
geometryInfo String: the geometry info

public void setMapView (MapView mapView)

Parameters
mapView MapView: the mMapView to set

public void setSymbol (Bitmap symbol)

Sets the symbol.

Parameters
symbol Bitmap: the symbol

public void setSymbol (int symbolResourceId)

Sets the symbol.

Parameters
symbolResourceId int: the symbol

public void setSymbol (Drawable symbol)

Sets the symbol.

Parameters
symbol Drawable: the symbol

public void setTitle (String title)

Sets the title.

Parameters
title String: the title