android
文章平均质量分 51
冀伟
这个作者很懒,什么都没留下…
展开
-
android图片的转换 Drawable bitmap byte[]
1、Drawable → Bitmap Java代码 public static Bitmap drawableToBitmap(Drawable drawable) { Bitmap bitmap = Bitmap .createBitmap( drawable.getIntrinsicWidth(), drawable.getIntrinsicHeigh...原创 2011-03-31 15:21:23 · 106 阅读 · 0 评论 -
Bitmap缩放的一个方法
public static Bitmap bitmapRoom(Bitmap srcBitmap,int newHeight,int newWidth) { int srcWidth = srcBitmap.getWidth(); int srcHeight = srcBitmap.getHeight(); float scale...原创 2011-03-31 15:34:11 · 433 阅读 · 0 评论 -
Android中悬浮窗口
调用WindowManager,并设置WindowManager.LayoutParams的相关属性,通过WindowManager的addView方法创建View,这样产生出来的View根据WindowManager.LayoutParams属性不同,效果也就不同了。比如qq for pad的桌面小图标 WindowManager的方法很简单,基本用到的就三个addView,removeV...原创 2011-04-08 11:21:18 · 99 阅读 · 0 评论