- 博客(2)
- 收藏
- 关注
原创 BitmapDrawable()不正确使用
查看源码BitmapDrawable.java。BitmapDrawable有若干个构造方法。 New BitmapDrawable(Bitmap bitmap)是早期的一个构造方法,在android 4.0已经过时,部分代码如下: this(new BitmapState(bitmap), null); 而google提倡使用new BitmapDrawable(Bitmap bitmap
2013-11-09 14:27:29 5429 1
原创 SDcard的获取,内置和外置
StorageManager sm = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); String[] paths = (String[]) sm.getClass().getMethod("getVolumePaths", null).invoke(sm, null);
2013-11-09 14:18:05 643
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人