duilib学习------网易云信TreeView与VListBox混合布局

261 篇文章 10 订阅
24 篇文章 6 订阅

实现的效果图:

左侧为TreeView控件,右侧上侧直接使用Label显示列头,右下侧使用VListBox控件即可,

布局文件如下:

 <VBox>
            <HBox>
                <TreeView class="list" name="treeView" bordersize="1,0,1,1" width="300" bordercolor="gray" padding="5,3,5,3" vscrollunit="1000" scrollbarpadding="2,2,2,2">
                </TreeView>
                <VBox>
                    <HBox height="35">
                        <Box width="240" height="35" bordersize="0,0,1,0" bordercolor="light_gray" bkcolor="white">
                            <Label margin="5" height="35" text="名称" align="vcenter"/>
                        </Box>
                        <Box width="120" height="35" bkcolor="white">
                            <Label margin="5" height="35" text="类型" align="vcenter" />
                        </Box>
                        <Box width="540" height="35" bordersize="1,0,1,0" bordercolor="light_gray" bkcolor="white">
                            <Label margin="5" height="35" text="数据" align="vcenter" />
                        </Box>
                    </HBox>
                    <VListBox class="list" name="listView" bordersize="0,0,1,1" bordercolor="gray">
                    </VListBox>
                </VBox>
            </HBox>
        </VBox>

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值