1 2 3 4 5 ··· 10 下一页
摘要: 在Android开发中,我们经常会遇到这样一种情况:在UI界面上进行某项操作后要执行一段很耗时的代码,比如我们在界面上点击了一个”下载“按钮,那么我们需要执行网络请求,这是一个耗时操作,因为不知道什么时候才能完成。为了保证不影响UI线程,所以我们会创建一个新的线程去执行我们的耗时的代码。当我们的耗时 阅读全文
posted @ 2018-03-19 05:31 gentspy 阅读(182) 评论(0) 推荐(0) 编辑
摘要: <!--注释内容--> 注意2不能重复注释<!--<!--content-->--> 阅读全文
posted @ 2017-12-03 23:27 gentspy 阅读(2111) 评论(0) 推荐(1) 编辑
摘要: 有两种方式: *方式一:Code-->Generate *方式二:通过快捷键Alt+Insert 这时,在弹出的对话框中就可以选择你所需要的对应的东东了。 *整理代码 ctrl+alt+L *导包 alt+enter *alt+F1 当前类的方法依次列出 阅读全文
posted @ 2017-07-04 09:43 gentspy 阅读(269) 评论(0) 推荐(0) 编辑
摘要: ...............public static final String TABLE_NAME = "notes";public static final String CONTENT = "content";public static final String ID = "_id";pu 阅读全文
posted @ 2016-05-26 15:08 gentspy 阅读(174) 评论(0) 推荐(0) 编辑
摘要: a,onMeasure决定内部View的宽高,以及自己的宽高b,onLayout 决定子VIew的放置的位置c.onTouchEvent,动作 阅读全文
posted @ 2016-05-17 17:04 gentspy 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 比如TextView: android:layout_gravity表示TextView在界面上的位置,android:gravity表示TextView文本在TextView的什么位置,默认值是左侧. 阅读全文
posted @ 2016-05-12 16:05 gentspy 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 反编译 我们都知道,Android程序打完包之后得到的是一个APK文件,这个文件是可以直接安装到任何Android手机上的,我们反编译其实也就是对这个APK文件进行反编译。Android的反编译主要又分为两个部分,一个是对代码的反编译,一个是对资源的反编译,我们马上来逐个学习一下。 在开始学习之前, 阅读全文
posted @ 2016-05-12 10:31 gentspy 阅读(1361) 评论(0) 推荐(0) 编辑
摘要: 函数,math.min(a, b ,c, d,...)返回最小的那个数字,其中比较的参数可以任意个.[1] 函数,math.min(a, b ,c, d,...)返回最小的那个数字,其中比较的参数可以任意个.[1] print("math.min "..math.min(5,3,6))结果:3 阅读全文
posted @ 2016-05-09 14:04 gentspy 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1.aidl: android interface definition language,是一种它是一种android内部进程通信接口的描述语言,通过它我们可以定义进程间的通信接口icp:interprocess communication :内部进程通信 2.既然aidl可以定义并实现进程通信, 阅读全文
posted @ 2016-05-05 11:40 gentspy 阅读(318) 评论(0) 推荐(0) 编辑
摘要: ry { PackageManager packageManager = getPackageManager(); Intent intent=new Intent(); intent = packageManager.getLaunchIntentForPackage("com.tencent.m 阅读全文
posted @ 2016-05-03 16:27 gentspy 阅读(178) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 10 下一页