m3

作者: 真好吃哦 | 来源:发表于2018-05-06 15:12 被阅读0次

    Check View(检查控件)
    --CheckBox(复选框),Switch(开关控件),ToggleButton(切换按钮)
    --直接判断是否选中然后执行相应事件即可
    --判断API
    check.isSelected()--返回布尔值

    --RadioButton(单选按钮)与RadioGroup
    --将RadioButton的父布局设定为RadioGroup然后绑定下面的监听即可
    rp.setOnCheckedChangeListener{
    onCheckedChanged=function(g,c)
    l=g.findViewById(c)
    print(l.Text)
    end}

    相关文章

      网友评论

          本文标题:m3

          本文链接:https://www.haomeiwen.com/subject/oudurftx.html