public class

CallCard

extends FrameLayout
implements View.OnClickListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.android.phone.CallCard

Class Overview

"Call card" UI element: the in-call screen contains a tiled layout of call cards, each representing the state of a current "call" (ie. an active call, a call on hold, or an incoming call.)

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
CallCard(Context context, AttributeSet attrs)
Public Methods
boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event)
void hideCallCardElements()
Hides the top-level UI elements of the call card: The "main call card" element representing the current active or ringing call, and also the info areas for "ongoing" or "on hold" calls in some states.
void onClick(View view)
void onImageLoadComplete(int token, Object cookie, ImageView iView, boolean imagePresent)
Implemented for ContactsAsyncHelper.OnImageLoadCompleteListener interface.
void onQueryComplete(int token, Object cookie, CallerInfo ci)
Implemented for CallerInfoAsyncQuery.OnQueryCompleteListener interface.
void onTickForCallTimeElapsed(long timeElapsed)
Protected Methods
void onFinishInflate()
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
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.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public CallCard (Context context, AttributeSet attrs)

Public Methods

public boolean dispatchPopulateAccessibilityEvent (AccessibilityEvent event)

public void hideCallCardElements ()

Hides the top-level UI elements of the call card: The "main call card" element representing the current active or ringing call, and also the info areas for "ongoing" or "on hold" calls in some states. This is intended to be used in special states where the normal in-call UI is totally replaced by some other UI, like OTA mode on a CDMA device. To bring back the regular CallCard UI, just re-run the normal updateState() call sequence.

public void onClick (View view)

public void onImageLoadComplete (int token, Object cookie, ImageView iView, boolean imagePresent)

Implemented for ContactsAsyncHelper.OnImageLoadCompleteListener interface. make sure that the call state is reflected after the image is loaded.

public void onQueryComplete (int token, Object cookie, CallerInfo ci)

Implemented for CallerInfoAsyncQuery.OnQueryCompleteListener interface. refreshes the CallCard data when it called.

public void onTickForCallTimeElapsed (long timeElapsed)

Protected Methods

protected void onFinishInflate ()