gzu-liyujiang / gzu-liyujiang/AndroidPicker
setOffset 方法没有作用
Open
expired
- Dominant language
- Java
- Stars
- 6.8k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
版本1.5.5 1.5.6
TimePicker
使用下面这个方法除了设置1时为1条,其他的时候都是5条,这是bug,还是使用的姿势不对
/**
* 设置选项偏移量,可用来要设置显示的条目数,范围为1-5。
* 1显示3条、2显示5条、3显示7条……
*/
public void setOffset(@IntRange(from = 1, to = 5) int offset) {
this.offset = offset;
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing TimePicker.setOffset(int) and where its offset value is used to determine the visible item count. Reproduce the behavior for offsets 1 through 5 on versions 1.5.5 and 1.5.6, then verify that the displayed row count matches the documented mapping.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100