摘要:
在Java中,求1!+2!+3!+···+1000!的结果,结果长度远远超出int和long类型的最大值,所以要使用BigDecimal类型,代码如下: 阅读全文
摘要:
1 public class MD5Util { 2 public static String getMD5(String s) { 3 char hexDigits[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 4 'A', 'B', 'C', 'D', 'E', '... 阅读全文
摘要:
1 import android.content.Context; 2 import android.graphics.Bitmap; 3 import android.graphics.BitmapShader; 4 import android.graphics.Canvas; 5 import 阅读全文
摘要:
1 public class DisplayUtil { 2 /** 3 * 将px值转换为dip或dp值,保证尺寸大小不变 4 * 5 * @param pxValue (DisplayMetrics类中属性density) 6 * @return 7 */ 8 public static int px2dip(... 阅读全文
摘要:
通过反射实现Menu显示图标 截取屏幕,获得Bitmap 从系统图库选择图片 无限轮播,在Adapter中处理 阅读全文
摘要:
1 public class SquareLayout extends RelativeLayout { 2 public SquareLayout(Context context, AttributeSet attrs, int defStyle) { 3 super(c... 阅读全文
摘要:
最近几天了解市场上主流的推送SDK。腾迅信鸽所需SDK,去官网自行下载。去下载完整的清单文件如下: 1 2 6 7 10 11 12 13 14 15 16 17 18 19 ... 阅读全文
摘要:
继承SwipeBackActivity即可实现向右滑动删除Activity效果点击下载所需文件 阅读全文