上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 119 下一页
摘要: 一、坐标系 Android应用层坐标系原点在左上角,坐标范围(0,0)——(width,height)。 Android底层坐标系原点在屏幕中央,坐标范围(-1000,,1000)——(1000,1000)。 二、Scale缩放 Matrix3*3的矩阵结构如下 scale就是缩放,我们调用Matr 阅读全文
posted @ 2017-02-08 10:37 鸭子船长 阅读(1074) 评论(0) 推荐(0)
摘要: 1、ListView基本概念 列表显示需要三个元素: 适配器类型分为三种:ArrayAdapter,SimpleAdapter和SimpleCursorAdapter。 1.1、ArrayAdapter ArrayAdapter是BaseAdapter的派生类,在BaseAdapter的基础上,添加 阅读全文
posted @ 2017-02-07 13:50 鸭子船长 阅读(266) 评论(0) 推荐(0)
摘要: 在使用listview时出现错误android.content.res.Resources$NotFoundException: String resource ID #0xa 经查证是在调用TextView的setText时,参数传入了int而不是String。 阅读全文
posted @ 2017-02-06 15:37 鸭子船长 阅读(383) 评论(0) 推荐(0)
摘要: Android Studio之前使用本地的gradle-2.10,而后创建新的工程总是报错,信息如下: Gradle sync failed: MALFORMED 而后在File->Project Structure->Project 中将gradle版本切换为2.14,问题不再出现。 阅读全文
posted @ 2017-02-06 11:17 鸭子船长 阅读(2390) 评论(0) 推荐(0)
摘要: 转自:xiaanming的博客(http://blog.csdn.net/xiaanming/article/details/21696315) 今天这篇文章主要分析的是Android的事件分发机制,采用例子加源码的方式让大家深刻的理解Android事件分发的具体情况,虽然网上很多Android的事 阅读全文
posted @ 2017-02-04 17:30 鸭子船长 阅读(186) 评论(0) 推荐(0)
摘要: FROM STACKOVERFLOW: Just giving my 50 cents on the issue. Catching the exception is indeed one possibility, but the correct way to deal with the issue 阅读全文
posted @ 2017-02-04 16:24 鸭子船长 阅读(14452) 评论(0) 推荐(0)
摘要: loarocks install loadcaffe 失败 1、Error: Your user does not have write permissions in /home/zhangliang/work/workspace_Letvplatform/neuralstyle/torch/ins 阅读全文
posted @ 2017-01-23 14:30 鸭子船长 阅读(2208) 评论(0) 推荐(0)
摘要: android中的事件类型分为按键事件和屏幕触摸事件,Touch事件是屏幕触摸事件的基础事件。 android系统中的每个View的子类都具有下面三个与TouchEvent处理密切相关的方法: (1)public boolean dispatchTouchEvent(MotionEvent ev)这 阅读全文
posted @ 2017-01-22 17:57 鸭子船长 阅读(5139) 评论(0) 推荐(0)
摘要: #!/bin/bash是指此脚本使用/bin/bash来解释执行。 其中,#!是一个特殊的表示符,其后,跟着解释此脚本的shell路径。 bash只是shell的一种,还有很多其它shell,如:sh,csh,ksh,tcsh,... 我们可以通过以下一个示例来进行实验,了解#!/bin/bash的 阅读全文
posted @ 2017-01-22 15:56 鸭子船长 阅读(625) 评论(0) 推荐(0)
摘要: 1、方法 (1)使用Serializable接口实现序列化。利用Bundle.putSerializable(Key, Object);这里objec对象需要实现serializable接口。 (2)实现Parcelable接口串行化。利用Bundle.putParcelable(Key, Obje 阅读全文
posted @ 2017-01-22 15:51 鸭子船长 阅读(596) 评论(0) 推荐(0)
上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 119 下一页