自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

原创 Android中悬浮窗口

调用WindowManager,并设置WindowManager.LayoutParams的相关属性,通过WindowManager的addView方法创建View,这样产生出来的View根据WindowManager.LayoutParams属性不同,效果也就不同了。比如qq for pad的桌面小图标 WindowManager的方法很简单,基本用到的就三个addView,removeV...

2011-04-08 11:21:18 88

原创 InputStream,String,File相互转化 (转)

1. String --> InputStream InputStream String2InputStream(String str){ ByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); return stream; } 2. InputStream --> String S...

2011-04-02 15:32:41 186

原创 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 418

原创 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 96

简单的ajax登录小程序 mysql数据库

练习Ajax的使用,做了个ajax验证用户名的登陆功能 数据库是mysql

2010-06-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除