java 广播组

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java 广播组相关的知识,希望对你有一定的参考价值。

rb=rg.getCheckedRadioButtonId(); //get checked radiobutton id in a radiogroup
selectedradioButton=findViewById(rb);        
String s=selectedradioButton.getText().toString();

//check if anything is selected in a radiogroup or not

if (rg.getCheckedRadioButtonId() == -1){
    //Nothing is selected
}

//to select a radioButton programmatically
radioButton.setChecked(true);

以上是关于java 广播组的主要内容,如果未能解决你的问题,请参考以下文章

使用 jquery 从广播组获取值

单播广播组播的区别和特点

MFC 中的广播组

从 json 设置广播组

获得广播组中单选按钮的焦点

《TCP/IP 详解 卷1:协议》第 9 章:广播和本地组播(IGMP 和 MLD)