DirectionsListView

  • The DirectionsListView is an Android component for displaying navigation directions in a user-friendly list format.

  • It requires careful lifecycle management, including forwarding Activity/Fragment lifecycle methods to ensure proper functionality.

  • Manual lifecycle method calls are necessary if the DirectionsListView is added or detached outside the typical lifecycle flow.

  • Proper integration within an Activity or Fragment context is essential for correct operation.

  • The DirectionsListView simplifies the presentation of turn-by-turn navigation instructions within Android applications.

public class DirectionsListView extends RelativeLayout

A View which displays a list of directions for navigation.

Users of this class must forward all the life cycle methods from the Activity or Fragment containing this view to the corresponding ones in this class. In particular, you must forward on the following methods:

If the DirectionsListView is added after its parent Activity or Fragment has been through its creation lifecycle, you must call onCreate(Bundle), onStart() and onResume() manually to properly initialize it. Similarly, if a DirectionsListView is detached from its parent Activity or Fragment, you must manually call onPause(), onStop() and onDestroy() to prevent leaks.

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

DirectionsListView(Context context)
DirectionsListView(Context context, AttributeSet attrs)
DirectionsListView(Context context, AttributeSet attrs, int defStyleAttr)

Public Method Summary

void
onConfigurationChanged(Configuration config)
void
onCreate(Bundle savedInstanceState)
void
void
void
void
onSaveInstanceState(Bundle outState)
void
void
onStop()

Inherited Method Summary

Public Constructors

public DirectionsListView (Context context)

Parameters
context

public DirectionsListView (Context context, AttributeSet attrs)

Parameters
context
attrs

public DirectionsListView (Context context, AttributeSet attrs, int defStyleAttr)

Parameters
context
attrs
defStyleAttr

Public Methods

public void onConfigurationChanged (Configuration config)

Parameters
config

public void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState

public void onDestroy ()

public void onPause ()

public void onResume ()

public void onSaveInstanceState (Bundle outState)

Parameters
outState

public void onStart ()

public void onStop ()