2012年9月17日

摘要: 在使用Eclipse缩放图片时应用到了以下两个包:import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGCodec;但是导入包报错:Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library 。。。。解决办法:把Windows-Preferences-Java-Complicer-Errors/Warnings里面的Deprecated and re 阅读全文
posted @ 2012-09-17 10:02 风也无踪 阅读(421) 评论(0) 推荐(0) 编辑
摘要: Eclipse中的解决办法如下:选中被运行的工程,右击,点击菜单‘runas->runconfiguration’,选择(x)=Argument标签页下的vm arguments框里输入 -Xmx512m, 保存运行就ok了Eclipse中的解决办法如下:选中被运行的工程,右击,点击菜单‘runas->runconfiguration’,选择(x)=Argument标签页下的vm arguments框里输入 -Xmx512m, 保存运行就ok了 阅读全文
posted @ 2012-09-17 10:01 风也无踪 阅读(139) 评论(0) 推荐(0) 编辑

2012年9月8日

摘要: 协方差是反映的变量之间的二阶统计特性,如果随机向量的不同分量之间的相关性很小,则所得的协方差矩阵几乎是一个对角矩阵。 阅读全文
posted @ 2012-09-08 21:03 风也无踪 阅读(177) 评论(0) 推荐(0) 编辑

2012年8月16日

摘要: Activity_main.xml<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ListView android:id="@+id/listVie 阅读全文
posted @ 2012-08-16 17:50 风也无踪 阅读(229) 评论(0) 推荐(0) 编辑
摘要: ListView的Item中包含Button、ImageView时,在不进行任何设置的情况下,Item不能够响应setOnItemLongClickListener事件。因为Item中的子控件将优先获取到Click的Focus,若想使Item依旧能够响应需进行一下设置:对Item Layout的根控件设置其android:descendantFocusability=”blocksDescendants”。当然也可以通过对每个子控件的focusable属性均设置为false。 在对ListView的item长按之后发生的事情: 首先触发的是onItemLongClick函数,执行onIte.. 阅读全文
posted @ 2012-08-16 16:56 风也无踪 阅读(2247) 评论(0) 推荐(0) 编辑
摘要: ContextMenu 继承自 Menu,其不同于选项菜单,option menu关联于Activity,而ContextMenu则用于注册到某个View对象上的。如果一个View对象注册了上下文菜单,用户可以通过长按该View对象上以呼出上下文菜单,我们需要点击控件出现的菜单属于context menu(最常见的是,在我们的手机记事本进行编辑的时候可以通过长按某编辑框出现 复制、粘贴、全选的菜单,这就是上下文菜单--ContextMenu)。 但是context menu 只能通过setOnCreateContextMenuListener来进行关联 阅读全文
posted @ 2012-08-16 15:37 风也无踪 阅读(174) 评论(0) 推荐(0) 编辑

2012年8月14日

摘要: Kesha - TiK ToK英文Wake up in the morning feeling like P Diddy(Hey, what up girl?)Grab my glasses, Im out the door -Im gonna hit this city (Lets go)Before I leave, brush my teeth with a bottle of JackCause when I leave for the night, I aint coming backIm talkin' bout - pedicures on our toes, toesT 阅读全文
posted @ 2012-08-14 14:39 风也无踪 阅读(256) 评论(0) 推荐(0) 编辑

2012年8月9日

摘要: 显式Intent:通过指定Intent组件名称来实现的,它一般用在知道目标组件名称的前提下,一般是在相同的应用程序内部实现的。 隐式Intent:通过Intent Filter来实现的,它一般用在没有明确指出目标组件名称的前提下,一般是用于在不同应用程序之间。显示Intent: ComponentName comp = new ComponentName(FirstActivity.this, SecondActivity.class); Intent intent = new Intent(); intent.setComponent(comp); 以上代码创建了一个intent对象... 阅读全文
posted @ 2012-08-09 16:05 风也无踪 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 当初申请博客园的帐号源于自己的毕业设计,后来就开始不断的baidubaidugooglegoogle,不过没有注意过做些笔记以作后来人学习之用,今日起开始记录自己的点滴,希望也能尽我微薄之力让童鞋们少走弯路,以致尽快成长!当前在学习Android开发,2012开播!!! 阅读全文
posted @ 2012-08-09 14:56 风也无踪 阅读(146) 评论(0) 推荐(0) 编辑

导航