Bigkoo / Bigkoo/Android-PickerView
临时解决:设置弹出高度,点击标题dismiss的bug,设置标题高度
- Dominant language
- Java
- Stars
- 13.4k
- Forks
- 3.4k
- PR merge metrics
- No merged PRs in 30d
Description
看了好多都没办法解决整体高度问题,又不想引入module,无奈自己尝试了一下
根本方案还是 需要作者大大可以开方的更完美一些
作者大大辛苦啦
1:可以解决整体高度问题(需要配合setLineSpacingMultiplier,setItemVisibleCount 呈现最优效果)
2:关于点击标题,和最底部会dismiss的问题 setOnClickListener
3:设置标题高度(覆盖values.xml中 pickerview_topbar_height 的值)
1:TimePickerView
timePickerView.dialogContainerLayout.apply {
findViewById(R.id.timepicker).apply {
minimumHeight = UIUtils.dp2px(context, 220f)//自己设置高度
}
setOnClickListener { }
}
2:OptionsPickerView
optionsPickerView.dialogContainerLayout.apply {
findViewById(R.id.optionspicker).apply {
minimumHeight = UIUtils.dp2px(context, 220f)//自己设置高度
}
setOnClickListener { }
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.