wangchyz / duilib_googlecode

从google code备份过来,仅作存档
https://github.com/duilib/duilib
8 stars 10 forks source link

xml语法可能性不太好 #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<TreeView bkcolor="#ffffffff" padding="1,1,1,1" visiblefolderbtn="true" 
visiblecheckbtn="false" vscrollbar="true" >
    <TreeNode text="研发中心" folderattr="padding=&quot;0,1,0,0&quot; width=&quot;16&quot; height=&quot;16&quot; normalimage=&quot;file='Icon/treeview_b.png' source='0,0,16,16' &quot; hotimage=&quot;file='Icon/treeview_b.png' source='16,0,32,16' &quot; selectedimage=&quot;file='Icon/treeview_a.png' source='0,0,16,16' &quot; selectedhotimage=&quot;file='Icon/treeview_a.png' source='16,0,32,16' &quot;" itemattr="foreimage=&quot;file='Department.png' dest='0,0,16,16'&quot; textpadding=&quot;18,0,0,0&quot;" >                  
        <TreeNode text="页游产品部" folderattr="padding=&quot;0,1,0,0&quot; width=&quot;16&quot; height=&quot;16&quot; normalimage=&quot;file='Icon/treeview_b.png' source='0,0,16,16' &quot; hotimage=&quot;file='Icon/treeview_b.png' source='16,0,32,16' &quot; selectedimage=&quot;file='Icon/treeview_a.png' source='0,0,16,16' &quot; selectedhotimage=&quot;file='Icon/treeview_a.png' source='16,0,32,16' &quot;" itemattr="foreimage=&quot;file='Department.png' dest='0,0,16,16'&quot; textpadding=&quot;18,0,0,0&quot;" >
            <TreeNode text="大侠传" folderattr="padding=&quot;0,1,0,0&quot; width=&quot;16&quot; height=&quot;16&quot; normalimage=&quot;file='Icon/treeview_b.png' source='0,0,16,16' &quot; hotimage=&quot;file='Icon/treeview_b.png' source='16,0,32,16' &quot; selectedimage=&quot;file='Icon/treeview_a.png' source='0,0,16,16' &quot; selectedhotimage=&quot;file='Icon/treeview_a.png' source='16,0,32,16' &quot;" itemattr="foreimage=&quot;file='Department.png' dest='0,0,16,16'&quot; textpadding=&quot;18,0,0,0&quot;" >
                <TreeNode text="程序" folderattr="padding=&quot;0,1,0,0&quot; width=&quot;16&quot; height=&quot;16&quot; normalimage=&quot;file='Icon/treeview_b.png' source='0,0,16,16' &quot; hotimage=&quot;file='Icon/treeview_b.png' source='16,0,32,16' &quot; selectedimage=&quot;file='Icon/treeview_a.png' source='0,0,16,16' &quot; selectedhotimage=&quot;file='Icon/treeview_a.png' source='16,0,32,16' &quot;" itemattr="foreimage=&quot;file='Department.png' dest='0,0,16,16'&quot; textpadding=&quot;18,0,0,0&quot;">                         
                </TreeNode>                     
            </TreeNode>                 
        </TreeNode>             
    </TreeNode>             
</TreeView>

类似这样,密密麻麻,还有疑似乱码的的“&quot;”,看着太��
�了。建议多参考html的语法。像这种一个属性包含多种值的,
建议用类似于html中的style='width:200,height:100'这种形式,可读性
会好很多呀。

Original issue reported on code.google.com by ytcheng...@gmail.com on 3 Nov 2012 at 9:11

Attachments: