public class

PhotoEditorView

extends ImageView
implements View.OnClickListener Editor
java.lang.Object
   ↳ android.view.View
     ↳ android.widget.ImageView
       ↳ com.android.contacts.ui.widget.PhotoEditorView

Class Overview

Simple editor for Photo.

Summary

[Expand]
Inherited Constants
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
PhotoEditorView(Context context)
PhotoEditorView(Context context, AttributeSet attrs)
Public Methods
boolean hasSetPhoto()
Return true if a valid Photo has been set.
void onClick(View v)
void onFieldChanged(String column, String value)
Called internally when the contents of a specific field have changed, allowing advanced editors to persist data in a specific way.
void setEditorListener(Editor.EditorListener listener)
Add a specific Editor.EditorListener to this Editor.
void setPhotoBitmap(Bitmap photo)
Assign the given Bitmap as the new value, updating UI and readying for persisting through EntityDelta.ValuesDelta.
void setSuperPrimary(boolean superPrimary)
Set the super primary bit on the photo.
void setValues(ContactsSource.DataKind kind, EntityDelta.ValuesDelta values, EntityDelta state, boolean readOnly, ViewIdGenerator vig)
Prepare this editor for the given EntityDelta.ValuesDelta, which builds any needed views.
Protected Methods
void onFinishInflate()
void resetDefault()
[Expand]
Inherited Methods
From class android.widget.ImageView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnClickListener
From interface android.view.accessibility.AccessibilityEventSource
From interface com.android.contacts.model.Editor

Public Constructors

public PhotoEditorView (Context context)

public PhotoEditorView (Context context, AttributeSet attrs)

Public Methods

public boolean hasSetPhoto ()

Return true if a valid Photo has been set.

public void onClick (View v)

public void onFieldChanged (String column, String value)

Called internally when the contents of a specific field have changed, allowing advanced editors to persist data in a specific way.

public void setEditorListener (Editor.EditorListener listener)

Add a specific Editor.EditorListener to this Editor.

public void setPhotoBitmap (Bitmap photo)

Assign the given Bitmap as the new value, updating UI and readying for persisting through EntityDelta.ValuesDelta.

public void setSuperPrimary (boolean superPrimary)

Set the super primary bit on the photo.

public void setValues (ContactsSource.DataKind kind, EntityDelta.ValuesDelta values, EntityDelta state, boolean readOnly, ViewIdGenerator vig)

Prepare this editor for the given EntityDelta.ValuesDelta, which builds any needed views. Any changes performed by the user will be written back to that same object.

Protected Methods

protected void onFinishInflate ()

protected void resetDefault ()