We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
demo:
switch = Switch() switch:width(100):height(80):marginLeft(100):marginTop(100) switch:bgColor(Color(223, 213, 12, 1)) switch:on(true) switch:setThumbColor(Color(255,0,0,1)) --设置圆点颜色 switch:setNormalColor(Color(0,0,255,1)) --设置未选中主题色 switch:setSelectedColor(Color(255,255,0,1)) --设置选中主题色 switch:setSwitchChangedCallback(function(isOn) print("switch changed -----", isOn) print("switch ----- ", switch:on()) end) window:addView(switch)
The text was updated successfully, but these errors were encountered:
待同步Lua版Switch控件,到MLN_ToolKit仓库,使用lua版定制化较好
Sorry, something went wrong.
dingpuyu
fangyuxiong
Tamerlx
zhangkekekeke
No branches or pull requests
demo:
The text was updated successfully, but these errors were encountered: