GitHub地址1、引入依赖 dependencies { debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.2' releas
1.重写Scroller/** * 利用这个类来修正ViewPager的滑动速度 * 我们重写 startScroll方法,忽略传过来的 duration 属性 * 而是采用我们自己设置的时间 */p
在起始页//得到签名PackageInfo packageInfo = null;try { packageInfo = getPackageManager().getPackageInfo(getP
# Add project specific ProGuard rules here.# By default, the flags in this file are appended to flag
1.glide 默认图片编码是使用PREFER_RGB_565 所以占用内存很小,但是可能会导致图片失真,变绿 对于不是很大的图片可以设置为PREFER_ARGB_8888,如下使用public st
数据准备订单表: order_detailCREATE TABLE `order_detail` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键'
先贴一段代码:public static void main(String[] args) { Integer a1 = Integer.valueOf(60); Integer b1 = 60; S