首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

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

2012-09-10 
传递图片对象以及设计edittext文本TextView TV (TextView)findViewById(R.id.mytextview01)??TV.setTex

传递图片对象以及设计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);?

热点排行