Skip to content

LabelDemo.llua

xu.jingyu edited this page Aug 11, 2020 · 2 revisions

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