页面布局的xml文件都放在了网上,要先从网上读取出来,再去用,如果不有更新的话,又要随时更新。
有什么思路??
有什么思路??
解决方案 »
- 使用豌豆夹安装android应用时,软件名称为包名?
- 怎么实现点心省电窗口widget展开的功能
- 用蓝牙同时传输文本和图片的问题
- Intent(DialIntent) setLaunchFlags中如何启动新的活动?
- 从开发者角度看,android基本=moto linux,android开发基本=j2me开发
- 申请Android地图API密匙
- help...how to get the frequency of an audio input
- [Android]如何在一个大文件(1G)的开头插入小段数据
- 关于Android 应用网络异常判断
- 用VideoView播放视频多次弹出“无法播放此视频”怎么办?
- 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和我们平时定义的会不太一样,其中的那些参数常量应该只能直接使用数字了吧,而且不是太有效率