2012年7月19日

Android SharedPreference使用

摘要: SharedPreference作为Android中存储数据的一种方式。在系统内部是以xml文件的形式保存。存储在\data\data\{Package}\shared_prefs文件夹下,用法比较简单。1、保存数据代码:SharedPreferences perferences=getSharedPreferences("SharedPreferencesActivity", MODE_PRIVATE);Editor editor=perferences.edit();editor.putString("name", "value" 阅读全文

posted @ 2012-07-19 21:36 FuChuan 阅读(180) 评论(0) 推荐(0)

2012年7月18日

android 解析xml 笔记

摘要: Android解析xml的方式较多,主要使用的SAX、DOM、PULL三种方式。下面使用一个简单的xml文档,讲解Android三种方式解析XML的步骤。test.xml<?xml version="1.0" encoding="UTF-8"?><persons> <person id="22"> <name>张三</name> <age>33</age> </person> <person id="32"> 阅读全文

posted @ 2012-07-18 23:42 FuChuan 阅读(129) 评论(0) 推荐(0)

2012年7月17日

Android 单元测试

摘要: 第一步,修改清单文件 1、在application节点下添加下列代码,引入android.test.runner库。<action android:name="android.intent.action.MAIN" /> 2、在跟节点下添加下列代码<instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.itcast.test" android:label="Tests 阅读全文

posted @ 2012-07-17 21:14 FuChuan 阅读(113) 评论(0) 推荐(0)

2012年7月16日

DevEcpress GridControl的单元格去掉提示

摘要: GridControl的组件的单元格默认是显示提示的,有时候因为特殊的需要。要取消提示。代码如下: 1 <dxg:GridControl AutoPopulateColumns="True" HorizontalAlignment="Stretch" Margin="12,12,0,0" Name="gridControl1" VerticalAlignment="Stretch" Width="auto" Height="auto"> 2 & 阅读全文

posted @ 2012-07-16 10:38 FuChuan 阅读(312) 评论(0) 推荐(0)

2012年4月16日

Optimizing the web. Start with the images!

摘要: 转载于http://www.stoimen.com/blog/2010/01/13/optimizing-the-web-start-with-the-images/Common question when speaking about web site optimization is: where should I start. As I mentioned before almost every technology used in the building of a web project can be improved. The bad news is that this improv 阅读全文

posted @ 2012-04-16 22:13 FuChuan 阅读(198) 评论(0) 推荐(0)

CSS sprites. Go beyond the limits with base64!

摘要: In fact how and why should I optimize CSS is the right question. Actually CSS is simply one ore more files loaded from the server to the client, usually a browser, with CSS specific rules that must be applied by the browser to the web page you’re seeing. That’s in general. Of course there are except 阅读全文

posted @ 2012-04-16 22:02 FuChuan 阅读(232) 评论(0) 推荐(0)

When you should use base64 for images

摘要: 转载于http://www.stoimen.com/blog/2009/04/23/when-you-should-use-base64-for-images/Base64 and image filesFor those who don’t know base64 it’s an encoding format for any data. In that case with the images we can simply say, that base64 equals to text (string) representation of the image itself. In most 阅读全文

posted @ 2012-04-16 21:59 FuChuan 阅读(238) 评论(0) 推荐(0)

导航