Skip to content

LabelDemo.ag

xu_whale edited this page Sep 7, 2020 · 1 revision

copy下面代码,运行试试

ui {
    --- layout views
    Label()
    .width(200)
    .height(100)
    .bgColor(Color(0xafaf00))
    .textAlign(TextAlign.CENTER)
    .cornerRadius(20)
    .styleText(StyleString("哈哈哈").underline(UnderlineStyle.LINE))

}

---
--- preview
function preview()

end
Clone this wiki locally