Android RadioButton class three kinds of checked way
来源:互联网 发布:网络安全法宣传单内容 编辑:程序博客网 时间:2024/05/17 23:54
The first : main.xml file,RadioButton element add android:checked attribute, set "true";
The second : use setChecked() on the RadioButton from within your onCreate() callback in your activity.example:
RadioButton rb = (RadioButton)findViewById(R.id.radio1);
rb.setChecked(true);
The third:use check() on the RadioGroup from within your onCreate() callback in your activity.example:
RadioGroup rg = (RadioGroup)findViewById(R.id.radiogroup);
rg.check(R.id.radio2);
- Android RadioButton class three kinds of checked way
- The Three Kinds of Laziness
- [收藏]The three kinds of aspect configuration
- [收藏]The three kinds of aspect configuration
- [收藏]The three kinds of aspect configuration
- three way of waterfall flow
- Nasm Intro - The Three Kinds of Operands & Conditional Instructions
- Android eglCreateWindowSurface Memory Allocation Kinds of Buffers Memory Share
- 未来IT行业将缩减到三类职业(The future of IT will be reduced to three kinds of jobs)
- 5 kinds of timers
- 4 kinds of references
- kinds of Containers
- BNU16494:Kinds of Fuwas
- all kinds of containers
- kinds of sort
- ZOJ2975 Kinds of Fuwas
- Kinds of Fuwas
- ZOJ2975-Kinds of Fuwas
- 异步上传文件
- ORACLE 11g EM 创建普通用户
- Camera接口
- linux下的用户和组的管理
- 引导流程续
- Android RadioButton class three kinds of checked way
- java webservice 实例
- quartus使用及signalTap问题
- 服务器反推技术,flex flash socket java javascript
- .Net调用Java的WebService
- 汉字转unicode码 简便方法
- getcwd和dirname(__FILE__)的区别
- 三十分钟掌握STL
- “软硬兼施”看高清——“硬解码”与“软解码”有啥不同?