FileDocCategorySizeDatePackage
MessageListView.javaAPI DocAndroid 1.5 API1757Wed May 06 22:42:46 BST 2009com.android.mms.ui

MessageListView

public final class MessageListView extends android.widget.ListView

Fields Summary
Constructors Summary
public MessageListView(android.content.Context context)

        super(context);
    
public MessageListView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
Methods Summary
public booleanonKeyShortcut(int keyCode, android.view.KeyEvent event)

        switch (keyCode) {
        case KeyEvent.KEYCODE_C:
            MessageListItem view = (MessageListItem)getSelectedView();
            if (view == null) {
                break;
            }
            MessageItem item = view.getMessageItem();
            if (item != null && item.isSms()) {
                ClipboardManager clip =
                    (ClipboardManager)getContext().getSystemService(Context.CLIPBOARD_SERVICE);
                clip.setText(item.mBody);
                return true;
            }
            break;
        }

        return super.onKeyShortcut(keyCode, event);