摘要: 单选框需要将选框写在RadioGroup里面 xml编写 <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" > <RadioButton android:id="@+id/radi 阅读全文
posted @ 2021-03-16 23:57 python我的最爱 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 选框的属性 1.在java代码中的属性 checkBox.setChecked(false) 设置当前的状态 checkBox.isChecked() 获取当前的状态 设置当前的监听状态 checkBox.setOnCheckedChangeListener(new CompoundButton.O 阅读全文
posted @ 2021-03-16 23:34 python我的最爱 阅读(1816) 评论(0) 推荐(0) 编辑
摘要: 约束布局是可以进行拖动的布局类型 约束布局的属性 1. 相当于相对布局的alignLeft左边线对齐 app:layout_constraintBottom_toBottomOf="parent" 相当于RelativeLayout的alignLeft app:layout_constraintRi 阅读全文
posted @ 2021-03-16 02:08 python我的最爱 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 网格布局中的属性 1.android:rowCount="5" 表示使用几行 2.android:columnCount="4" 表示使用几列 3.android:layout_columnSpan="2" 表示跨几列 4.android:layout_rowSpan="2" 表示跨几行 5.and 阅读全文
posted @ 2021-03-16 01:59 python我的最爱 阅读(192) 评论(0) 推荐(0) 编辑