radiobutton,RadioButton切换页面
http://www.itjxue.com 2023-01-23 17:13 来源:未知 点击次数:
C#中radioButton的使用
两个radioButton,一个textBox ,
在其中一个radioButton的change事件中写textBox1.Enable=True;
在令一个radioButton的change事件中写textBox1.Enable=False;
这样既可。。
如果你的项目是网页的话,需要将两个radioButton的AutoPostBack属性设置为True,让其可以自动回调数据。
以上信息希望对你有帮助。。^^
radiobutton的变量类型
是BOOL型变量或者int型变量。用ClassWizard关联变量时发现radiobutton控件的变量类型是BOOL型变量或者int型变量。radiobutton控件可以关联一个int的变量,可以用这个变量表示同一组中radiobutton的选择情况。
RadioButton 颜色设置:
小圆圈颜色设置:android:buttonTint
RadioButton
RadioButton
android:id="@+id/rb_one"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/whole_rent"
android:buttonTint="@color/colorPrimary"
android:textColor="@color/textBlack"
tools:layout_editor_absoluteX="247dp"
tools:layout_editor_absoluteY="58dp" /