gzu-liyujiang / gzu-liyujiang/AndroidPicker
TimeMode设置为None时,DatimeWheelLayout显示内容无法居中
- Dominant language
- Java
- Stars
- 6.8k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
```
AndroidView(
modifier = Modifier
.fillMaxWidth()
.height(222.dp),
factory = {
val view = DatimeWheelLayout(it)
view.layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
view.setDateMode(DateMode.YEAR_MONTH_DAY)
view.setTimeMode(TimeMode.NONE)
view.setDateFormatter(UnitDateFormatter())
view.setRange(DatimeEntity.now(), DatimeEntity.monthOnFuture(3))
view
},
)
```
我打算只选择年月日,按照代码设置之后,显示的内容无法撑满宽度,如果不设置TimeMode,就会显示时、分,请问如何解决呢?版本4.1.11

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue from the provided AndroidView setup using DatimeWheelLayout, DateMode.YEAR_MONTH_DAY, and TimeMode.NONE. Start at DatimeWheelLayout's date/time mode and layout-sizing logic, then verify that date-only content is centered and uses the available width without showing hour or minute columns.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100