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

ImageAttachmentView

public class ImageAttachmentView extends android.widget.LinearLayout implements SlideViewInterface
This class provides an embedded editor/viewer of picture attachment.

Fields Summary
private android.widget.ImageView
mImageView
Constructors Summary
public ImageAttachmentView(android.content.Context context)

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

        super(context, attrs);
    
Methods Summary
protected voidonFinishInflate()

        mImageView = (ImageView) findViewById(R.id.image_content);
    
public voidpauseAudio()

        // TODO Auto-generated method stub

    
public voidpauseVideo()

        // TODO Auto-generated method stub

    
public voidreset()

        mImageView.setImageDrawable(null);
    
public voidseekAudio(int seekTo)

        // TODO Auto-generated method stub

    
public voidseekVideo(int seekTo)

        // TODO Auto-generated method stub

    
public voidsetAudio(android.net.Uri audio, java.lang.String name, java.util.Map extras)

        // TODO Auto-generated method stub

    
public voidsetImage(java.lang.String name, android.graphics.Bitmap bitmap)

        if (null == bitmap) {
            bitmap = BitmapFactory.decodeResource(getResources(),
                    R.drawable.ic_missing_thumbnail_picture);
        }
        mImageView.setImageBitmap(bitmap);
    
public voidsetImageRegionFit(java.lang.String fit)

        // TODO Auto-generated method stub

    
public voidsetImageVisibility(boolean visible)

        // TODO Auto-generated method stub

    
public voidsetText(java.lang.String name, java.lang.String text)

        // TODO Auto-generated method stub

    
public voidsetTextVisibility(boolean visible)

        // TODO Auto-generated method stub

    
public voidsetVideo(java.lang.String name, android.net.Uri video)

        // TODO Auto-generated method stub

    
public voidsetVideoVisibility(boolean visible)

        // TODO Auto-generated method stub

    
public voidsetVisibility(boolean visible)

        setVisibility(visible ? View.VISIBLE : View.GONE);
    
public voidstartAudio()

        // TODO Auto-generated method stub

    
public voidstartVideo()

        // TODO Auto-generated method stub

    
public voidstopAudio()

        // TODO Auto-generated method stub

    
public voidstopVideo()

        // TODO Auto-generated method stub