传递图片对象以及设计edittext文本

TextView TV = (TextView)findViewById(R.id.mytextview01); 
 
TV
.setText("I know just how to whisper, And I know just how to cry,I know just where to find the answers", TV.BufferType.SPANNABLE); 
 
Spannable WordtoSpan = (Spannable) myTextView.getText();         
 
WordtoSpan.setSpan(new ForegroundColorSpan(Color.BLUE), 15, 30, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 
 
TV
.setText(WordtoSpan); 

 


BitmapDrawable bd = (BitmapDrawable)imageView.getDrawable(); 
intent
.putExtra("img", bd); 

Bitmap b = (Bitmap) intent.getParcelable("img"); 
imageView
.setImageBitmap(b); 

你可能感兴趣的:(EditText)