org.hermit.android.widgets
Class TimeZoneActivity
java.lang.Object
ListActivity
org.hermit.android.widgets.TimeZoneActivity
public class TimeZoneActivity
- extends ListActivity
This class displays a picker which can be used to select a timezone.
Options are provided to add app-specific zones, such as "local",
"nautical", etc.
Method Summary |
protected void |
onCreate(Bundle icicle)
Called when the activity is starting. |
void |
onListItemClick(ListView l,
View v,
int position,
long id)
This method will be called when an item in the list is selected. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeZoneActivity
public TimeZoneActivity()
onCreate
protected void onCreate(Bundle icicle)
- Called when the activity is starting. This is where most
initialization should go: calling setContentView(int) to inflate
the activity's UI, etc.
- Parameters:
icicle
- If the activity is being re-initialized
after previously being shut down then this
Bundle contains the data it most recently
supplied in onSaveInstanceState(Bundle).
Note: Otherwise it is null.
onListItemClick
public void onListItemClick(ListView l,
View v,
int position,
long id)
- This method will be called when an item in the list is selected.
Subclasses can call getListView().getItemAtPosition(position) if
they need to access the data associated with the selected item.
- Parameters:
l
- The ListView where the click happened.v
- The view that was clicked within the ListView.position
- The position of the view in the list.id
- The row id of the item that was clicked.