上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页
摘要: http://developer.android.com/training/swipe/respond-refresh-request.html This lesson shows you how to update your app when the user requests a manual 阅读全文
posted @ 2016-03-08 22:32 f9q 阅读(282) 评论(0) 推荐(0) 编辑
摘要: http://developer.android.com/training/swipe/add-swipe-interface.html 1,在布局xml和代码中使用它 2,在menu中添加它 The swipe-to-refresh user interface pattern is implem 阅读全文
posted @ 2016-03-08 22:22 f9q 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.简介 The SwipeRefreshLayout should be used whenever the user can refresh the contents of a view via a vertical swipe gesture. The activity that instan 阅读全文
posted @ 2016-03-08 21:54 f9q 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 去官网 : http://jd.benow.ca/ 找到 JD-Eclipse 和 JD-IntelliJ,下载,前者安在eclipse上,后者安在as上。 阅读全文
posted @ 2016-03-08 15:33 f9q 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: 1,配置环境变量, 加上ANDROID_EMULATOR_FORCE_32BIT=true 2,在AS中启动模拟器用下面方法 在你要运行的个工程右击->Run as -> Run configuration->Android application-> emulator , 滚动条拉到最后,找到co 阅读全文
posted @ 2016-03-08 15:10 f9q 阅读(193) 评论(0) 推荐(0) 编辑
摘要: ABI的概念: ABI(Application Binary Interface)实际就是指应用程序基于哪种指令集来进行编译,能用到的ABI 也就四种 armeabi,armeabi-v7a ,x86 和mips ,前两者是最常见的。 其次这4个编译选项的含义: 1.‘armeabi’ 默认选项,将 阅读全文
posted @ 2016-03-08 14:24 f9q 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 1.简介 有很多工具都可以录屏,如 byzanz + xdotool 等,peek是一款图形软件,也可以设置很多参数,提高清晰度.可以录制apng,gif,webm,mp4. https://github.com/phw/peek 2.安装 如果软件包里安装失败 那么 3.开始工作 在终端运行 pe 阅读全文
posted @ 2016-03-08 14:07 f9q 阅读(695) 评论(0) 推荐(0) 编辑
摘要: gif比png,jpg具有更好的展示效果。github上的很多项目就用gif。 一个比较好的工具是 : http://cockos.com/licecap/ 但是目前不支持linux。 阅读全文
posted @ 2016-03-07 15:10 f9q 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 注意:它们是软件架构,不是设计模式 左边mvc 右边mvp MVC和MVP的区别? MVP 是从经典的MVC架构演变而来,它们的基本思想有相通的地方:Controller/Presenter负责逻辑的处理,Model提供数据,View负责显示。作为一种新的架构,MVP与MVC有着一个重大的区别:在M 阅读全文
posted @ 2016-03-06 22:59 f9q 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1,MotionEvent的复制或构造 有时候可能要保存一个MotionEvent, 它的构造方法是匿名的,不能直接创建,对外提供的获取对象的接口是静态的obtain方法,可以从一个MotionEvent对象获取,也可以从一些变量获取。 1 @Override 2 public boolean on 阅读全文
posted @ 2016-03-05 23:26 f9q 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 对整个机器:所有用户 1,在/etc/profile 文件末尾加入 2,source /etc/profile使其立即生效 对当前用户 对 ~/.profile 执行上述操作 阅读全文
posted @ 2016-02-22 18:45 f9q 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1.渲染脚本官网 https://developer.android.com/guide/topics/renderscript/compute 2.高斯模糊 ScriptIntrinsicBlur 2.1 添加api 在module 的 build.gradle 文件中添加选项,注意是 defau 阅读全文
posted @ 2016-02-18 23:47 f9q 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.cnblogs.com/xiaorenwu702/p/5185436.html 当外层容器组件调用其内部的某个组件view1.measure(xxx)时,view1的onMeasure(xxx)就被调用。 1,measure >onMeasure >setMeasure 阅读全文
posted @ 2016-02-16 21:49 f9q 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: Custom Components 1.In this document The Basic Approach Fully Customized Components Compound Controls Modifying an Existing View Type Android offers a 阅读全文
posted @ 2016-02-16 17:09 f9q 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 作用: 基类View有个函数 public void setTouchDelegate(TouchDelegate delegate),给view内部的另一个view设置一个touch代理。 图中view是外部view,它包含tv1,tv2两个内部view, view可以给tv1,tv2设置一个to 阅读全文
posted @ 2016-02-05 21:26 f9q 阅读(351) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页