Methods Summary |
---|
public void | onFinishInflate()
mImageView = (ImageView) findViewById(R.id.image);
mAudioView = findViewById(R.id.audio);
mAudioNameView = (TextView) findViewById(R.id.audio_name);
mEditText = (EditText) findViewById(R.id.text_message);
mEditText.addTextChangedListener(new TextWatcher() {
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
}
public void onTextChanged(CharSequence s, int start, int before,
int count) {
if (mOnTextChangedListenerEnabled && (mOnTextChangedListener != null)) {
mOnTextChangedListener.onTextChanged(s.toString());
}
}
public void afterTextChanged(Editable s) {
// TODO Auto-generated method stub
}
});
|
public void | pauseAudio()
// TODO Auto-generated method stub
|
public void | pauseVideo()
// TODO Auto-generated method stub
|
public void | reset()
mImageView.setImageDrawable(null);
mAudioView.setVisibility(View.GONE);
mOnTextChangedListenerEnabled = false;
mEditText.setText("");
mOnTextChangedListenerEnabled = true;
|
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)
mAudioView.setVisibility(View.VISIBLE);
mAudioNameView.setText(name);
|
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)
// TODO Auto-generated method stub
|
public void | setOnTextChangedListener(com.android.mms.ui.BasicSlideEditorView$OnTextChangedListener l)
mOnTextChangedListener = l;
|
public void | setText(java.lang.String name, java.lang.String text)
mOnTextChangedListenerEnabled = false;
if ((text != null) && !text.equals(mEditText.getText().toString())) {
mEditText.setText(text);
mEditText.setSelection(text.length());
}
mOnTextChangedListenerEnabled = true;
|
public void | setTextVisibility(boolean visible)
// TODO Auto-generated method stub
|
public void | setVideo(java.lang.String name, android.net.Uri video)
Bitmap bitmap = VideoAttachmentView.createVideoThumbnail(mContext, video);
if (null == bitmap) {
bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.ic_missing_thumbnail_video);
}
mImageView.setImageBitmap(bitmap);
|
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
|