java.lang.Object | |
↳ | com.android.contacts.ui.ViewIdGenerator |
A class that provides unique view ids for ContentEditorView, KindSectionView
,
GenericEditorView
and EditView on EditContactActivity
.
It is used to assign a unique but consistent id to each view across EditContactActivity
's
lifecycle, so that we can re-construct view state (e.g. focused view) when the screen rotates.
This class is not thread safe.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | NO_VIEW_INDEX |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an id for a view associated with specified contact field.
| |||||||||||
{@Override }
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Returns an id for a view associated with specified contact field.
entity | EntityDelta associated with the view |
---|---|
kind | ContactsSource.DataKind associated with the view, or null if none exists. |
values | EntityDelta.ValuesDelta associated with the view, or null if none exists. |
viewIndex | index of the view in the parent Editor, if it's a leave view.
Otherwise, pass NO_VIEW_INDEX .
|