diff --git a/libraries/timeline-view/README.md b/libraries/timeline-view/README.md index 5644bb16..91f12c9b 100644 --- a/libraries/timeline-view/README.md +++ b/libraries/timeline-view/README.md @@ -1,6 +1,6 @@ -timelineViewVersion = timeline-view-1.1.0 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +timelineViewVersion = timeline-view-1.1.1 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ## TimelineView TimelineView creates a timeline and shows actions over time diff --git a/libraries/timeline-view/src/main/java/com/trendyol/timelineview/TimelineItemAdapter.kt b/libraries/timeline-view/src/main/java/com/trendyol/timelineview/TimelineItemAdapter.kt index 8d703443..1dbdd661 100644 --- a/libraries/timeline-view/src/main/java/com/trendyol/timelineview/TimelineItemAdapter.kt +++ b/libraries/timeline-view/src/main/java/com/trendyol/timelineview/TimelineItemAdapter.kt @@ -64,7 +64,7 @@ class TimelineItemAdapter(var timelineOrientation: TimelineOrientation = HORIZON fun bind(itemViewState: TimelineItemViewState) { with(binding) { - root.layoutParams = root.layoutParams.apply { width = itemViewState.lineWidth.toInt() } + root.layoutParams = root.layoutParams.apply { width = itemViewState.getItemWidth().toInt() } with(viewStartLine) { setBackgroundColor(itemViewState.getStartLineColor()) visibility = itemViewState.getStartLineVisibility()