摘要:
引用:http://www.htcplayer.com/thread-2852-1-1.html动画类型Android的animation由四种类型组成XML中alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果translate画面转换位置移动动画效果rotate画面转移旋转动画效果JavaCode中AlphaAnimation渐变透明度动画效果ScaleAnimation渐变尺寸伸缩动画效果TranslateAnimation画面转换位置移动动画效果RotateAnimation画面转移旋转动画效果Android动画模式Animation主要有两种动画模式:一种是tweened an 阅读全文
摘要:
引用:http://www.cnblogs.com/fbsk/archive/2011/10/11/2207530.html1.Drawable—>BitmapResources res=getResources();Bitmap bmp=BitmapFactory.decodeResource(res, R.drawable.sample_0);2.Bitmap---->DrawableDrawable drawable =new BitmapDrawable(bmp);另外在网上搜了些,也不知到底谁是原创的1、Drawable → Bitmappublic static Bit 阅读全文
摘要:
引用:http://www.iteye.com/topic/1114018byte[]imageByte=getImageFromURL(urlPath.trim());//以下是把图片转化为缩略图再加载BitmapFactory.Optionsoptions=newBitmapFactory.Options();options.inJustDecodeBounds=true;BitmapFactory.decodeByteArray(imageByte, 0, imageByte.length,options);<spanstyle="font-family:Helvetic 阅读全文
摘要:
引用:http://www.linuxidc.com/Linux/2011-09/43131.htm// 简单的比较两个图像是否一致 private boolean compare2Image(Bitmap bmp1,Bitmap bmp2) { int iteration = 0; int width = bmp1.getWidth(); int height = bmp1.getHeight(); if(width != bmp2.getWidth()) return false; if(height != bmp2.getHeight()) return false; if(... 阅读全文
摘要:
引用:http://wang-peng1.iteye.com/blog/563249String textCo = ""; textCo = "<a href='http://www.baidu.com'>baidu</a>"; TextView textView = new TextView(mContext); textView.setText(Html.fromHtml(textCo)); textView.setLinksClickable(true); textView.setMovementMethod 阅读全文