上一页 1 ··· 7 8 9 10 11 12 13 下一页

2012年11月5日

摘要: 方法一在终端中执行下列指令:cat /etc/issue可以查看当前正在运行的 Ubuntu 的版本号。其输出结果类似下面的内容:Ubuntu 12.04.1 LTS \n \l方法二使用 lsb_release 命令也可以查看 Ubuntu 的版本号,与方法一相比,内容更为详细。执行指令如下:lsb_release -a将输出结果:No LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 12.04.1 LTSRelease: 12.04Codename: precise 阅读全文
posted @ 2012-11-05 19:14 frydsh 阅读(16415) 评论(0) 推荐(1) 编辑

2012年11月3日

摘要: TouchDelegates in Android allow to increase the touch area of a View, e.g. Button. This is very useful if you want to make it easier for the user to touch your button. Here is a small example for the usage of a touch delegate. The layout has the ID root and contains a button with the ID delegat... 阅读全文
posted @ 2012-11-03 14:59 frydsh 阅读(1859) 评论(0) 推荐(0) 编辑

2012年11月2日

摘要: 今天在收邮件的时候,发现部分中文邮件乱码,经调查发现,该邮件使用的是UTF-8编码,而我的Thunderbird没有启用UTF-8编码。 解决方法:在 菜单栏 ---> 查看 ---> 字符编码 ---> 定制列表 ---> 定制字符编码 对话框中激活UTF-8 如果还是不行,你可能需要在菜单栏 ---> 查看 ---> 字符编码 ---> 中手动选择UTF-8 建议:在菜单栏 ---> 编辑 ---> 首选项 ---> 显示 ---> 字体 ---> 字符编码 中将发送邮件和接收邮件的编码默认改为GB-2312,毕竟大多 阅读全文
posted @ 2012-11-02 10:34 frydsh 阅读(7792) 评论(0) 推荐(0) 编辑

2012年11月1日

摘要: 今天在gedit中保存中文内容,之后再打开,出现乱码,从原理上来说,它肯定是编码问题。Ubuntu下的解决方案是: http://wiki.ubuntu.org.cn/Gedit%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81 阅读全文
posted @ 2012-11-01 15:29 frydsh 阅读(322) 评论(0) 推荐(0) 编辑

2012年10月27日

摘要: There are basically three logs on the system:Log:for short, textual datain-memory ringbuffer, fastephemeral (you'll lose it on a crash, or the ringbuffer scrolls)intended forapp developersEventLog is:for short, binary datain-memory ringbuffer, fastephemeral (you'll lose it on a crash, or the 阅读全文
posted @ 2012-10-27 18:24 frydsh 阅读(659) 评论(0) 推荐(0) 编辑

2012年10月26日

摘要: 从Android 2.3(API Level 9)开始,Android提供了一个程序性能诊断工具,它就是StrictMode。 目前,StrictMode的能力与限制包括: 1.基于线程的对磁盘读写,网络操作,以及自定义耗时操作等的监控; 2.基于VM进程的对对象泄露(Activity对象,SQLite对象,未反注册对象,未关闭对象)的监控; 3.可以检测到跨进程的耗时操作(当然必须是同步操作); 4.当前不支持在jni中发生的网络与磁盘操作。 随着Android的进化,StrictMode的功能也将越来越强大。 当StrictMode... 阅读全文
posted @ 2012-10-26 20:38 frydsh 阅读(6412) 评论(2) 推荐(1) 编辑

2012年10月25日

摘要: What Triggers ANR?In Android, application responsiveness is monitored by the Activity Manager and Window Manager system services. Android will display the ANR dialog for a particular application when it detects one of the following conditions:No response to an input event (e.g. key press, screen tou 阅读全文
posted @ 2012-10-25 19:00 frydsh 阅读(736) 评论(1) 推荐(1) 编辑

2012年10月23日

摘要: Android从3.0(APILevel11)开始,在绘制View的时候支持硬件加速,充分利用GPU的特性,使得绘制更加平滑,但是会多消耗一些内存。开启或关闭硬件加速:由于硬件加速自身并非完美无缺,所以Android提供选项来打开或者关闭硬件加速,默认是关闭。可以在4个级别上打开或者关闭硬件加速:Application级别:<applicationandroid:hardwareAccelerated="true"...>Activity级别:<activityandroid:hardwareAccelerated="false"... 阅读全文
posted @ 2012-10-23 18:52 frydsh 阅读(51852) 评论(0) 推荐(1) 编辑

2012年10月22日

摘要: Tips and TricksSwitching to hardware accelerated 2D graphics can instantly increase performance, but you should still design your application to use the GPU effectively by following these recommendations:Reduce the number of views in your applicationThe more views the system has to draw, the slower 阅读全文
posted @ 2012-10-22 20:21 frydsh 阅读(1117) 评论(0) 推荐(0) 编辑

2012年10月15日

摘要: 大多数Android设备都是触摸屏的,但是实际上Android设备也支持键盘操作,允许通过键盘来完成导航,点击,输入等。 当用户通过键盘(或者轨迹球)操作的时候,有必要聚焦当前接受输入的UI元素,例如,高亮(聚焦)某个按钮,让用户知道当前正在操作的UI元素是哪个。 但是,当用户使用触摸屏与设备交互的时候,始终聚焦当前UI元素就没有必要了,而且很丑陋;用户点击哪个元素,哪个元素就是当前元素,无需高亮标识。并且,通过触摸屏与设备交互的时候,点击某个UI元素也不会导致该元素聚焦,此时的高亮效果是由Pressed状态来完成的。也就是说,在Touch Mode模式之下,UI元素是不会进入聚... 阅读全文
posted @ 2012-10-15 19:37 frydsh 阅读(6696) 评论(0) 推荐(1) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页

导航