Methods Summary |
---|
protected void | onFinishInflate()
mImageView = (ImageView) findViewById(R.id.slideshow_image);
mTextView = (TextView) findViewById(R.id.slideshow_text);
|
public void | pauseAudio()
// TODO Auto-generated method stub
|
public void | pauseVideo()
// TODO Auto-generated method stub
|
public void | reset()
mImageView.setImageURI(null);
mTextView.setText("");
|
public void | seekAudio(int seekTo)
// TODO Auto-generated method stub
|
public void | seekVideo(int seekTo)
// TODO Auto-generated method stub
|
public void | setAudio(android.net.Uri audio, java.lang.String name, java.util.Map extras)
// TODO Auto-generated method stub
|
public void | setImage(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 void | setImageRegionFit(java.lang.String fit)
// TODO Auto-generated method stub
|
public void | setImageVisibility(boolean visible)
mImageView.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
|
public void | setText(java.lang.String name, java.lang.String text)
mTextView.setText(text);
|
public void | setTextVisibility(boolean visible)
mTextView.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
|
public void | setVideo(java.lang.String name, android.net.Uri video)
MediaPlayer mp = new MediaPlayer();
try {
mp.setDataSource(mContext, video);
mImageView.setImageBitmap(mp.getFrameAt(1000));
} catch (IOException e) {
Log.e(TAG, "Unexpected IOException.", e);
} finally {
mp.release();
}
|
public void | setVideoVisibility(boolean visible)
// TODO Auto-generated method stub
|
public void | setVisibility(boolean visible)
// TODO Auto-generated method stub
|
public void | startAudio()
// TODO Auto-generated method stub
|
public void | startVideo()
// TODO Auto-generated method stub
|
public void | stopAudio()
// TODO Auto-generated method stub
|
public void | stopVideo()
// TODO Auto-generated method stub
|