如何显示的单选按钮被永久地选 [英] how to show that the radio button is selected permanently

查看:207
本文介绍了如何显示的单选按钮被永久地选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有同样的问题
<一href=\"http://stackoverflow.com/questions/7198859/how-to-show-the-radio-button-is-selected-is-still-ticked\">how显示单选按钮被选中还是打勾?但在Android平台......任何人可以帮我请..
我的codeS是

i have the same problem as how to show the radio button is selected is still ticked? but in android platform... can anybody help me please.. my codes are

<RadioButton
android:checked="false"
android:id="@+id/BBC"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ffff6600"
android:text="BBC NEWS"
android:typeface="serif"
android:textStyle="bold"
android:layout_x="10px"
android:layout_y="100px">
</RadioButton>

在此先感谢...

Thanks in advance...

推荐答案

与内容相似的问题是昨天问:结果
<一href=\"http://stackoverflow.com/questions/7314670/i-have-radio-button-for-the-user-to-choose-if-he-she-wants-to-keep-his-her-accoun\">I有单选按钮供用户选择,如果他/她想要保持记录在他/她的帐户。

A question with similar content was asked yesterday:
I have radio button for the user to choose if he/she wants to keep his/her account logged in.

您能不能解决这个问题正好与layout.xml - 你需要保存的单选按钮的状态,一旦相应的活动又开始加载它

you can't solve this problem just with the layout.xml - you need to save the status of the radio button and load it again once the appropriate activity is started

这篇关于如何显示的单选按钮被永久地选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆