上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 变换Matrix的原理http://blog.csdn.net/pathuang68/article/details/6991867代码验证http://blog.csdn.net/pathuang68/article/details/6991988Matrix的应用http://blog.csdn.net/pathuang68/article/details/6992085附:三角函数公式 ,有助于理解Matrix原理两角和公式sin(a+b)=sinacosb+cosasinbsin(a-b)=sinacosb-sinbcosa cos(a+b)=cosacosb-sinasinbcos 阅读全文
posted @ 2012-06-09 16:12 Stanley.Luo 阅读(385) 评论(0) 推荐(0) 编辑
摘要: Android 动画框架详解http://www.ibm.com/developerworks/cn/opensource/os-cn-android-anmt1/index.html 阅读全文
posted @ 2012-06-08 19:43 Stanley.Luo 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 要点:1.定义Layout 文件 如header.xml2. 继承类FrameLayout(或者ViewGroup, 或者View)publicHeaderBar(Contextcontext,AttributeSetattrs){this(context,attrs,R.style.headerTitleBarStyle);}publicHeaderBar(Contextcontext,AttributeSetattrs,intdefStyle){super(context,attrs,defStyle);LayoutInflater.from(context).inflate(R.layo 阅读全文
posted @ 2012-05-25 18:36 Stanley.Luo 阅读(12161) 评论(0) 推荐(1) 编辑
摘要: Android LintLint 是Android ADT 16引入的优化工具,它可以扫描你的代码,帮助发现潜在的问题,例如:1.文本国际化(有些文本缺少其它语言版本)2.Layout的性能问题3.无用的多余的资源4.不一致的数组大小(在配置文件中)5.重复的图标,图片6.可用性问题(如没有为EditText指定 InputType)7.Manifest xml配置错误。安装了ADT 16后, 默认就有Lint。项目上右键-》Android Tools->Run Lint.... 阅读全文
posted @ 2012-05-15 11:11 Stanley.Luo 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 请参考Windows 下配置android 源码获取环境http://yuanzhifei89.iteye.com/blog/1117549注意里面的提到的源码地址android.git.kernel.org已经不可用,估计Google关闭掉了,应替换成新的https://android.googlesource.com/很多时候我们并不想下载全部源码,以下是各个子项目的源码(最新,可用地址):gitclonehttps://android.googlesource.com/device/common.gitgitclonehttps://android.googlesource.com/de 阅读全文
posted @ 2012-05-12 11:07 Stanley.Luo 阅读(6883) 评论(0) 推荐(0) 编辑
摘要: 一直认为Andoid 官网是最强大,最权威的开发参考文档。里面有不少好东西,可以慢慢挖掘。今天的Tips 是:1.如果你指定了layout_weight, android:layout_width设置成0,可以提高性能。In order to improve the layout efficiency when you specify the weight, you should change the width of the EditText to be zero (0dp). Setting the width to zero improves layout performance be. 阅读全文
posted @ 2012-05-04 01:11 Stanley.Luo 阅读(272) 评论(0) 推荐(0) 编辑
摘要: NND, 该死的ZF, 把google搜索老是屏蔽!百度牛掰?又不见你百度给我找出正确答案?!!要是有一天“百度他M”能知道就好了。。。以下是以备需要, 还没有测试成功!Omit Unexpected XML Elements With XStreamPosted January 8, 2009Filed under: Java, XML | XStream is a Java xml library, which nicely serializes Java objects to XML and vice versa. It can easily deal with missing (i.. 阅读全文
posted @ 2012-04-01 00:56 Stanley.Luo 阅读(5560) 评论(2) 推荐(0) 编辑
摘要: 以下是我的自己的理解:px:表示屏幕实际的象素, 就是屏幕上一个一个的点,像素并不能表示真实的尺寸,一个像素有可能很大(例如在投影仪的屏幕上),也有可能很小(如在手机上)。pt:表示一个点,是屏幕的真实物理尺寸,常用于印刷。大小为1英寸的1/72. 在Photoshop 上, 默认设置是72像素/英寸, 所以在这种情况下,1pt = 1px.dp:也写作dip, 他两都是一个意思。它Android 自己抽象出来的单位, 我的理解是,它其实跟真实物理尺寸是一致的,它与像素无关,与屏幕密度(下面解释)无关。densityDpi: 屏幕密度,对应于PC领域的DPI, 也就是一英寸里有多少个像素。标准 阅读全文
posted @ 2012-02-20 10:36 Stanley.Luo 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: 好久之前写的, 现在回看, 确实非常抱歉,误导大家了。 这种方法只是用于项目引用, export的jar包是不包括res的。不过现在大家都用新工具Android Studio, 它的aar格式, 确实包含了res的。 ====================================== 我们 阅读全文
posted @ 2012-02-18 15:36 Stanley.Luo 阅读(26052) 评论(20) 推荐(2) 编辑
摘要: 如果要定死横屏或者竖屏,不让它在用户旋转屏幕时改变:就用screenOrientation<activity android:name=".MyActivity" android:label="@string/app_name"android:screenOrientation="portrait">如果要做相应处理,就配置android:configChangesFor example, the following manifest code declares an activity that handles both 阅读全文
posted @ 2012-02-15 10:53 Stanley.Luo 阅读(1036) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页