上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页
摘要: 插入命令 a append after the cursor A append after the current line i insert before the cursor I insert before the current line o append new line O insert 阅读全文
posted @ 2017-08-25 19:52 欧阳平 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-23 14:42 欧阳平 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-22 23:39 欧阳平 阅读(224) 评论(0) 推荐(0) 编辑
摘要: class CalculateThread extends Thread { private Handler handler; @Override public void run() { super.run(); Looper.prepare(); handler = new Handler() { 阅读全文
posted @ 2017-08-22 22:50 欧阳平 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 很经常当我们动态创建某些View时,需要通过获取他们的width和height来确定别的view的布局,但是在onCreate()获取view的width和height会得到0.view.getWidth()和view.getHeight()为0的根本原因是控件还没有完成绘制,你必须等待系统将绘制完 阅读全文
posted @ 2017-08-20 08:22 欧阳平 阅读(3610) 评论(0) 推荐(0) 编辑
摘要: 现在来分析分析下Android View的点击方法onclick();我们知道onclick()是一个回调方法,当用户点击View就执行这个方法,我们用Button来举例好了 //这个是View的一个回调接口 /** * Interface definition for a callback to 阅读全文
posted @ 2017-08-19 15:42 欧阳平 阅读(2207) 评论(0) 推荐(0) 编辑
摘要: 程序员A写了一段程序(程序a),其中预留有回调函数接口,并封装好了该程序。程序员B要让a调用自己的程序b中的一个方法,于是,他通过a中的接口回调自己b中的方法。目的达到。在C/C++中,要用回调函数,被掉函数需要告诉调用者自己的指针地址,但在JAVA中没有指针,怎么办?我们可以通过接口(interf 阅读全文
posted @ 2017-08-19 15:18 欧阳平 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 首先声明只有在Linearlayout中,该属性才有效。之所以Android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示: [html] view 阅读全文
posted @ 2017-08-18 15:43 欧阳平 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 问题 > Rendering Problems The following classes could not be instantiated: - android.support.v7.internal......... 解决 > 方法1、改变android API版本 方法2、将styles.x 阅读全文
posted @ 2017-08-18 15:27 欧阳平 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 这个属性用于指示该服务是否能够被其他应用程序组件调用或跟它交互。如果设置为true,则能够被调用或交互,否则不能。设置为false时,只有同一个应用程序的组件或带有相同用户ID的应用程序才能启动或绑定该服务。 它的默认值依赖与该服务所包含的过滤器。没有过滤器则意味着该服务只能通过指定明确的类名来调用 阅读全文
posted @ 2017-08-17 16:51 欧阳平 阅读(364) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页