摘要:
android中的一个应用程序可以单独编译,编译后要重新生成system.img在源码目录下执行以下脚本 . build/envsetup.sh (.后面有空格)就多出一些命令: - croot: Changes directory to the top of the tree. - m: Makes from the top of the tree. - mm: Builds all of the modules in the current directory. - mmm: Builds all of the modules in the supplied directorie... 阅读全文
随笔档案-2012年7月31日
(转)Preference的使用
2012-07-31 08:50 by ...平..淡..., 474 阅读, 收藏,
摘要:
Preference直译为偏好,博友建议翻译为首选项。一些配置数据,一些我们上次点击选择的内容,我们希望在下次应用调起的时候依然有效,无须用户再一次进行配置或选择。Android提供preference这个键值对的方式来处理这种情况,自动保存这些数据,并立时生效,同时Android提供一种类似的layout的方式来进行Prefernce的布局。一个简单的Preferenece例子步骤1:编写preference XML,在res/xml/下加入我们的preference XML文件,例如名字叫c21preference.xml<?xml version="1.0" e 阅读全文
浙公网安备 33010602011771号