java.lang.Object
   ↳ com.android.contacts.ui.QuickContactWindow

Class Overview

Window that shows QuickContact dialog for a specific _ID.

Summary

Nested Classes
interface QuickContactWindow.OnDismissListener Interface used to allow the person showing a QuickContactWindow to know when the window has been dismissed. 
class QuickContactWindow.RootLayout Custom layout the sole purpose of which is to intercept the BACK key and close QC even when the soft keyboard is open. 
Public Constructors
QuickContactWindow(Context context)
Prepare a dialog to show in the given Context.
QuickContactWindow(Context context, QuickContactWindow.OnDismissListener dismissListener)
Prepare a dialog to show in the given Context, and notify the given QuickContactWindow.OnDismissListener each time this dialog is dismissed.
Public Methods
synchronized void dismiss()
Dismiss this dialog if showing.
boolean dispatchKeyEvent(KeyEvent event)
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
boolean dispatchTouchEvent(MotionEvent event)
boolean dispatchTrackballEvent(MotionEvent event)
void onAttachedToWindow()
void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
void onClick(View view)
void onContentChanged()
boolean onCreatePanelMenu(int featureId, Menu menu)
View onCreatePanelView(int featureId)
void onDetachedFromWindow()
void onGlobalLayout()
void onItemClick(AdapterView<?> parent, View view, int position, long id)
boolean onKeyDown(int keyCode, KeyEvent event)
boolean onKeyLongPress(int keyCode, KeyEvent event)
boolean onKeyMultiple(int keyCode, int count, KeyEvent event)
boolean onKeyUp(int keyCode, KeyEvent event)
boolean onMenuItemSelected(int featureId, MenuItem item)
boolean onMenuOpened(int featureId, Menu menu)
void onPanelClosed(int featureId, Menu menu)
boolean onPreparePanel(int featureId, View view, Menu menu)
synchronized void onQueryComplete(int token, Object cookie, Cursor cursor)
boolean onSearchRequested()
void onWindowAttributesChanged(WindowManager.LayoutParams attrs)
void onWindowFocusChanged(boolean hasFocus)
void setLastSelectedContactsAppTab(int value)
synchronized void show(Uri lookupUri, Rect anchor, int mode, String[] excludeMimes)
Start showing a dialog for the given _ID pointing towards the given location.
Protected Methods
void detectEventOutside(MotionEvent event)
Detect if the given MotionEvent is outside the boundaries of this window, which usually means we should dismiss.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnClickListener
From interface android.view.ViewTreeObserver.OnGlobalLayoutListener
From interface android.view.Window.Callback
From interface android.widget.AdapterView.OnItemClickListener
From interface android.widget.CompoundButton.OnCheckedChangeListener

Public Constructors

public QuickContactWindow (Context context)

Prepare a dialog to show in the given Context.

public QuickContactWindow (Context context, QuickContactWindow.OnDismissListener dismissListener)

Prepare a dialog to show in the given Context, and notify the given QuickContactWindow.OnDismissListener each time this dialog is dismissed.

Public Methods

public synchronized void dismiss ()

Dismiss this dialog if showing.

public boolean dispatchKeyEvent (KeyEvent event)

public boolean dispatchPopulateAccessibilityEvent (AccessibilityEvent event)

public boolean dispatchTouchEvent (MotionEvent event)

public boolean dispatchTrackballEvent (MotionEvent event)

public void onAttachedToWindow ()

public void onCheckedChanged (CompoundButton buttonView, boolean isChecked)

public void onClick (View view)

public void onContentChanged ()

public boolean onCreatePanelMenu (int featureId, Menu menu)

public View onCreatePanelView (int featureId)

public void onDetachedFromWindow ()

public void onGlobalLayout ()

public void onItemClick (AdapterView<?> parent, View view, int position, long id)

public boolean onKeyDown (int keyCode, KeyEvent event)

public boolean onKeyLongPress (int keyCode, KeyEvent event)

public boolean onKeyMultiple (int keyCode, int count, KeyEvent event)

public boolean onKeyUp (int keyCode, KeyEvent event)

public boolean onMenuItemSelected (int featureId, MenuItem item)

public boolean onMenuOpened (int featureId, Menu menu)

public void onPanelClosed (int featureId, Menu menu)

public boolean onPreparePanel (int featureId, View view, Menu menu)

public synchronized void onQueryComplete (int token, Object cookie, Cursor cursor)

public boolean onSearchRequested ()

public void onWindowAttributesChanged (WindowManager.LayoutParams attrs)

public void onWindowFocusChanged (boolean hasFocus)

public void setLastSelectedContactsAppTab (int value)

public synchronized void show (Uri lookupUri, Rect anchor, int mode, String[] excludeMimes)

Start showing a dialog for the given _ID pointing towards the given location.

Protected Methods

protected void detectEventOutside (MotionEvent event)

Detect if the given MotionEvent is outside the boundaries of this window, which usually means we should dismiss.