直播系统源代码,单选按钮和复选框
直播系统源代码,单选按钮和复选框
1 | <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" <br> android:layout_width= "match_parent" <br> android:layout_height= "match_parent" <br> android:background= "@drawable/background" <br> android:orientation= "vertical" <br> android:paddingLeft= "20dp" <br> android:paddingRight= "20dp" <br> android:paddingTop= "30dp" ><br> <TextView<br> android:id= "@+id/tvSetInformation" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_gravity= "center" <br> android:layout_marginBottom= "30dp" <br> android:text= "@string/set_information" <br> android:textColor= "#0000ff" <br> android:textSize= "30sp" /><br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:gravity= "center_vertical" <br> android:orientation= "horizontal" ><br> <TextView<br> android:id= "@+id/tvName" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "@string/name" <br> android:textColor= "#000000" <br> android:textSize= "16sp" /><br> <EditText<br> android:id= "@+id/edtName" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:ems= "10" <br> android:hint= "@string/input_name" <br> android:singleLine= "true" /><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:gravity= "center_vertical" <br> android:orientation= "horizontal" ><br> <TextView<br> android:id= "@+id/tvGender" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "@string/gender" <br> android:textColor= "#000000" <br> android:textSize= "16sp" /><br> <RadioGroup<br> android:id= "@+id/rgGender" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:orientation= "horizontal" ><br> <RadioButton<br> android:id= "@+id/rbMale" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:checked= "true" <br> android:text= "@string/male" /><br> <RadioButton<br> android:id= "@+id/rbFemale" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_marginLeft= "15dp" <br> android:text= "@string/female" /><br> </RadioGroup><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:gravity= "center_vertical" <br> android:orientation= "horizontal" ><br> <TextView<br> android:id= "@+id/tvHobby" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "@string/hobby" <br> android:textColor= "#000000" <br> android:textSize= "16sp" /><br> <CheckBox<br> android:id= "@+id/cbMusic" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "@string/music" /><br> <CheckBox<br> android:id= "@+id/cbRead" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "@string/read" /><br> <CheckBox<br> android:id= "@+id/cbFood" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:text= "@string/food" /><br> </LinearLayout><br> <LinearLayout<br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "30dp" ><br> <Button<br> android:id= "@+id/btnOk" <br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:layout_weight= "1" <br> android:onClick= "doOK" <br> android:text= "@string/ok" /><br> <Button<br> android:id= "@+id/btnClear" <br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:layout_weight= "1" <br> android:onClick= "doClear" <br> android:text= "@string/clear" /><br> <Button<br> android:id= "@+id/btnExit" <br> android:layout_width= "match_parent" <br> android:layout_height= "wrap_content" <br> android:layout_weight= "1" <br> android:onClick= "doExit" <br> android:text= "@string/exit" /><br> </LinearLayout><br> <TextView<br> android:id= "@+id/tvResult" <br> android:layout_width= "wrap_content" <br> android:layout_height= "wrap_content" <br> android:layout_marginTop= "30dp" <br> android:textSize= "15sp" /><br></LinearLayout> |
以上就是直播系统源代码,单选按钮和复选框, 更多内容欢迎关注之后的文章
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
2022-10-12 直播app开发搭建,自动获取短信验证码,点击自动填充输入框
2022-10-12 直播电商平台开发,将图片格式改成任意格式,如将bmp改成jpg格式
2022-10-12 视频直播源码,python实现列表插入、查找、删除
2021-10-12 短视频系统,获取camera的的图像并保存
2021-10-12 短视频平台源码,首页视频之间设置间距
2021-10-12 在线直播系统源码,个人主页用户标签添加实现