摘要: xml: java类:public class ActShowBigPicture extends BaseActivity implements ZoomImageView.onImageTouchedListener { /** 图片url集合 intent key */ pu... 阅读全文
posted @ 2015-12-02 15:39 说好范特西 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 直接上代码/** * 自定义可伸缩的ImageView */public class ZoomImageView extends ImageView { /** 画笔类 **/ private Paint mPaint; private Runnable mRefresh = null; /** 缩... 阅读全文
posted @ 2015-12-01 15:03 说好范特西 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 在xml中注册 启动 app核心服务package com.boai.base.receiver;import android.content.Broadc... 阅读全文
posted @ 2015-11-25 14:30 说好范特西 阅读(431) 评论(0) 推荐(1) 编辑
摘要: 工具网址:https://github.com/square/leakcanary 中文版说明地址:http://www.liaohuqiu.net/cn/posts/leak-canary-read-me/ 阅读全文
posted @ 2015-11-18 17:27 说好范特西 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1.先检查list是否设置监听onItemClick事件2.ListView中有按钮时,会使子项的onItemClick事件无效,如果onItemClick不能触发,在ListView子项目布局文件中的根控件中添加android:descendantFocusability="blocksDesce... 阅读全文
posted @ 2015-09-30 10:13 说好范特西 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 要实现这样的功能,原理不难,监听滑动距离再设置标题栏的透明度下面是监听一个带头view的list实现核心代码:mbar是标题栏 mListView.setOnScrollListener(new AbsListView.OnScrollListener() { @Overrid... 阅读全文
posted @ 2015-05-19 17:07 说好范特西 阅读(1310) 评论(0) 推荐(0) 编辑
摘要: eclipse要求打开的是java1.6,而安装的是java1.7,这个时候需要修改配置 找到JAVA的安装路径, 点击前往-电脑-资源库-Java-javaVCirtualMachines-...-info.plist编辑info.plist复制这句话 JN... 阅读全文
posted @ 2015-05-04 13:51 说好范特西 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.2cto.com/kf/201401/270169.html问题:给Button加一个动画,让这个Button的宽度从当前宽度增加到500px。也许你会说,这很简单,用渐变动画就可以搞定,我们可以来试试,你能写出来吗?很快你就会恍然大悟,原来渐变动画根本不支持对宽度进... 阅读全文
posted @ 2015-04-30 10:58 说好范特西 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 【解决方法】选择Tools-Options,在弹出的设置窗口中,「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn和80,并且选中「Forcehttps://...sources to be fetched usin... 阅读全文
posted @ 2015-03-13 11:02 说好范特西 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1.((ViewGroup)view.getParent()).removeView(view)2.ViewGroup rootView = (ViewGroup) this.findViewById(android.R.id.content); rootView.removeView(...) 阅读全文
posted @ 2014-06-21 11:58 说好范特西 阅读(1099) 评论(0) 推荐(0) 编辑