- 博客(3)
- 资源 (4)
- 收藏
- 关注
原创 手机分辨率dp和px转换
public class DensityUtil { /** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDispl
2015-08-31 15:35:11 886
原创 Android Outline,Shadow和Clip
ShadowView的大小位置都是通过x,y确定的,而在Android 5.0有了z轴的概念,这个z值就是View的高度(elevation),高度决定了阴影(shadow)的大小。 View的z值由两部分组成,elevation和translationZ; eleavation是静态的成员,translationZ是用来做动画。 Z = elevation + translationZ e
2015-08-28 17:29:26 10320 2
原创 Android Bigmap的操作(绘制,裁剪)
bitmap = bitmap.createBitmap(bitmap,0,70,bitmap.getWidth(),bitmap.getHeight()/3);Matrix matrix = new Matrix();matrix.postScale(2.0f, 0.5f); bitmap = bitmap.createBitmap(bitmap,0,0,bitmap.getWidth()/2
2015-08-06 16:50:48 2014
html解析器ixml
2013-08-15
设计模式可复用面向对象软件的基础
2012-05-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人