Android7.0中文文档(API) --- RadioButton
来源:互联网 发布:网络的拓扑结构 编辑:程序博客网 时间:2024/06/05 19:56
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RadioButton.html
RadioButton
public class RadioButton
extendsCompoundButton
A radio button is a two-states button that can be either checked or unchecked. When the radio button is unchecked, the user can press or click it to check it. However, contrary to aCheckBox
, a radio button cannot be unchecked by the user once checked.
单选按钮是一种特殊的双态按钮,其有选中和为选中2种状态。当单选按钮未被选中,则用户可以按下或点击它,以选中它。然而,与CheckBox
不同的是,用户一旦选中了它,就不能取消对它的选中。
Radio buttons are normally used together in a RadioGroup
. When several radio buttons live inside a radio group, checking one radio button unchecks all the others.
通常多个单选按钮在一个RadioGroup
中一起使用。当多个单选按钮在一个RadioGroup中是,选中一个单选按钮,则其它的单选按钮将被取消选中。
See the Radio Buttons guide.
请参考Radio Buttons。
XML attributes
XML属性
See CompoundButton Attributes
,Button Attributes
,TextView Attributes
,View Attributes
请参考CompoundButton Attributes
,Button Attributes
,TextView Attributes
。View Attributes
摘要
继承XML属性
android.widget.CompoundButton
android.widget.TextView
android.view.View
继承常量
android.widget.TextView
android.view.View
继承字段
android.view.View
Public构造方法
RadioButton(Context context)
RadioButton(Context context, AttributeSet attrs)
RadioButton(Context context, AttributeSet attrs, int defStyleAttr)
RadioButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public方法
CharSequence
getAccessibilityClassName()
Return the class name of this object to be used for accessibility purposes.
返回此对象的类名,用于辅助功能目的。
void
toggle()
Change the checked state of the view to the inverse of its current state
将视图的选中状态更改为与当前状态相反的状态。
If the radio button is already checked, this method will not toggle the radio button.
如果单选按钮已经被选中,此方法将不会切换单选按钮。
继承方法
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/RadioButton.html
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- Android7.0中文文档(API)--- DialerFilter
- Unity Learning for Day 12
- css知多少(5)——选择器
- C#中Ini文件读写操作
- vue-cli 和 express+mongodb结合!
- Java集合类详解
- Android7.0中文文档(API) --- RadioButton
- 雕虫小技也重要--数据处理中的电子表格技巧
- C++ Algorithm 不改变参数的函数详解
- 第一篇
- IntelliJ使用指南—— 导入Eclipse的Web项目
- C语言实现单链表面试题--进阶(带环问题)
- C#学习笔记(1)_用EditPlus编译运行C#程序
- GoogLeNet
- Tomcat在Myeclipse中出现的问题(一)