最近在看OpenCamera的源码,表示受益很深,项目地址:https://github.com/almalence/OpenCamera
讲真,从来没有解析过XML ,虽然json很方便,但是遇到了,还是表示学习一下
assets 下的xml 文件 opencamera_modes.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<mode id="single" name="single_mode_name" savename="">
<icon id="gui_almalence_mode_single"/>
<vf id="com.almalence.plugins.histogramvf"/>
<vf id="com.almalence.plugins.barcodescannervf"/>
<vf id="com.almalence.plugins.gridvf"/>
<vf id="com.almalence.plugins.zoomvf"/>
<vf id="com.almalence.plugins.focusvf"/>
<vf id="com.almalence.plugins.infosetvf"/>
<vf id="com.almalence.plugins.aeawlockvf"/>
<vf id="com.almalence.plugins.gyrovf"/>
<capture id="com.almalence.plugins.capture" />
<processing id="com.almalence.plugins.simpleprocessing" />
<filter/>
<export id="com.almalence.plugins.export"/>
<sku/>
<howtotext id=""/>
</mode>
<mode id="burstmode" name="burst_mode_name" savename="">
<icon id="gui_almalence_mode_burst"/>
<vf id="com.almalence.plugins.gridvf"/>
<vf id="com.almalence.plugins.zoomvf"/>
<vf id="com.almalence.plugins.histogramvf"/>
<vf id="com.almalence.plugins.barcodescannervf"/>
<vf id="com.almalence.plugins.focusvf"/>
<vf id="com.almalence.plugins.infosetvf"/>
<vf id="com.almalence.plugins.aeawlockvf"/>
<vf id="com.almalence.plugins.gyrovf"/>
<capture id="com.almalence.plugins.burstcapture" />
<processing id="com.almalence.plugins.simpleprocessing" />
<filter/>
<export id="com.almalence.plugins.export"/>
<sku/>
<howtotext id=""/>
</mode>
<mode id="expobracketing" name="expobracketing_mode_name" savename="BKT">
<icon id="gui_almalence_mode_expobracketing"/>
<vf id="com.almalence.plugins.gridvf"/>
<vf id="com.almalence.plugins.zoomvf"/>
<vf id="com.almalence.plugins.focusvf"/>
<vf id="com.almalence.plugins.infosetvf"/>
<vf id="com.almalence.plugins.aeawlockvf"/>
<vf id="com.almalence.plugins.gyrovf"/>
<capture id="com.almalence.plugins.expobracketingcapture" />
<processing id="com.almalence.plugins.simplep