页面布局的xml文件都放在了网上,要先从网上读取出来,再去用,如果不有更新的话,又要随时更新。
有什么思路??
有什么思路??
解决方案 »
- android编程中,intent组件是个神马东东?
- C# 压缩,Android解压错误,求解决方法
- Android下如何写一个自己的键盘锁
- 创建新的Android项目,Eclipse自动创建的appcompat内容
- ant编译时UNEXPECTED TOP-LEVEL EXCEPTION异常
- Android Sqlite database not open错误
- Android源码大全(学习天地)
- 如何使用MediaRecorder本地录制的同时往服务器上传数据流?
- 我项目中刚做完Android设备连接wifi打印机的功能,兼容市场上的打印机
- Error inflating class android.support.v7.widget.Toolbar
- android数据库错误
- android mediaplayer 循环播放视频问题
大体内容
<?xml version="1.0" encoding="UTF-8"?><Preference xmlns:android="http://schemas.android.com/apk/res/android"> <update> <revision></revision> <description></description> <timestamp></timestamp> <changelist> <change></change> </changelist> </update></Preference>
工程中写入一个revision号,每次运行时,下下来解析比对revision,有更新就更新changelis中的东西,当然有写服务器端的话可以返回个json。(我的想法,紧供参考)
工程中记录一个工程
View android.view.LayoutInflater.inflate(XmlPullParser parser, ViewGroup root)
Inflate a new view hierarchy from the specified xml node. Throws InflateException if there is an error. * Important For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime.Parameters:
parser XML dom node containing the description of the view hierarchy.
root Optional view to be the parent of the generated hierarchy.
Returns:
The root View of the inflated hierarchy. If root was supplied, this is the root View; otherwise it is the root of the inflated XML file.
不过这个xml和我们平时定义的会不太一样,其中的那些参数常量应该只能直接使用数字了吧,而且不是太有效率