自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

寒江蓑笠的专栏

好记性不如写博客。天道酬勤。

  • 博客(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

一款强大的html解析器,简单,易用 The Linux DOM2 XML Parser Version 1.2 (IXML) is a lightweight, portable XML parser supporting the standard Document Object Model (DOM) Level 2 interfaces. The parser uses a C-style interface, making it idea for small, embedded applications. This document describes the interfaces supported by IXML 1.2, referencing the W3C DOM2 recommendations when necessary, and the additional utility application programming interfaces (APIs) that it supports.

2013-08-15

设计模式可复用面向对象软件的基础

这本书的目的就是将面向对象软件的设计经验作为设计模式记录下来。每一个设计模式系统地命名、解释和评价了面向对象系统中一个重要的和重复出现的设计。我们的目标是将设计经验以人们能够有效利用的形式记录下来。鉴于此目的,我们编写了一些最重要的设计模式,并以编目分类的形式将它们展现出来。

2012-05-23

空空如也

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

TA关注的人

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