drawable 转 bitmap的一个小问题 本帖最后由 itakeblue 于 2011-07-15 18:32:02 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试activity内this.getResources().getDrawable(id) Resources res=getResources(); ((BitmapDrawable)res.getDrawable(R.drawable.youricon)).getBitmap();或者Bitmap BitIcon = null;BitIcon = ((BitmapDrawable) getResources().getDrawable(R.drawable.youricon)).getBitmap(); android平台下php如何调用java api android2.3.3 内核中nfc驱动问题? 在Android中如何使用system/lib下的库中的函数? 超级难题,搜索不到任何答案,至少求助大侠们 做手机雷电游戏,什么样的算法才最合理? android listview 滑动问题 android ant build error: Android下面的开发只能选用JAVA吗? 求大神帮忙,ORIENTATION感应器 值不对,怎么校准? 有什么方法呀?? 网上下载安卓项目没有app文件夹 跪求,在android手机端,用代码来截图。高手快来哦 解析XML出错了
this.getResources().getDrawable(id)
((BitmapDrawable)res.getDrawable(R.drawable.youricon)).getBitmap();
或者Bitmap BitIcon = null;
BitIcon = ((BitmapDrawable) getResources().getDrawable(R.drawable.youricon)).getBitmap();