使用時很簡單,只要在ui.bxml中指定heading即可。
============範例展示=================================================
============範例展示=================================================
<!--ui.bxml--><Window title="Separators" maximized="true" xmlns:bxml="http://pivot.apache.org/bxml" xmlns="org.apache.pivot.wtk"> <BoxPane orientation="vertical" styles="{padding:4, spacing:10, fill:true}"> <Separator heading="第一小節"/> <Label text="This is the content of section 1."/> <Separator heading="第二小節"/> <Label text="This is the content of section 2."/> <Separator heading="第三小節"/> <Label text="This is the content of section 3."/> </BoxPane> </Window>
No comments:
Post a Comment