摘要: 在Java中,求1!+2!+3!+···+1000!的结果,结果长度远远超出int和long类型的最大值,所以要使用BigDecimal类型,代码如下: 阅读全文
posted @ 2016-06-03 09:46 望臻风格 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 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', '... 阅读全文
posted @ 2016-04-15 09:35 望臻风格 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1 import android.content.Context; 2 import android.graphics.Bitmap; 3 import android.graphics.BitmapShader; 4 import android.graphics.Canvas; 5 import 阅读全文
posted @ 2016-04-08 16:59 望臻风格 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1 public class DisplayUtil { 2 /** 3 * 将px值转换为dip或dp值,保证尺寸大小不变 4 * 5 * @param pxValue (DisplayMetrics类中属性density) 6 * @return 7 */ 8 public static int px2dip(... 阅读全文
posted @ 2016-04-05 12:40 望臻风格 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 通过反射实现Menu显示图标 截取屏幕,获得Bitmap 从系统图库选择图片 无限轮播,在Adapter中处理 阅读全文
posted @ 2016-03-31 17:02 望臻风格 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 开袋即食 阅读全文
posted @ 2016-03-25 16:51 望臻风格 阅读(1645) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 阅读全文
posted @ 2016-03-17 20:37 望臻风格 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 1 public class SquareLayout extends RelativeLayout { 2 public SquareLayout(Context context, AttributeSet attrs, int defStyle) { 3 super(c... 阅读全文
posted @ 2016-01-08 11:29 望臻风格 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 最近几天了解市场上主流的推送SDK。腾迅信鸽所需SDK,去官网自行下载。去下载完整的清单文件如下: 1 2 6 7 10 11 12 13 14 15 16 17 18 19 ... 阅读全文
posted @ 2015-11-24 12:00 望臻风格 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 继承SwipeBackActivity即可实现向右滑动删除Activity效果点击下载所需文件 阅读全文
posted @ 2015-09-21 14:48 望臻风格 阅读(643) 评论(0) 推荐(0) 编辑