You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TimelineView creates a timeline and shows actions over time.
HorizontalTimelineWithIndexText
HorizontalTimelineWithIndexText creates a timeline with points at their midpoints displaying their respective indexes.
The line width is automatically calculated and centered horizontally to fit the screen. It can contain any number of steps.
Installation
To implement TimelineView to your Android project via Gradle, you need to add JitPack repository to your root build.gradle.
To set lineType, it accepts LineType.Solid or LineType.Dashed()
LineAnimation
Parameter Name
Type
Description
initialValue
Float
To set initialValue
durationMillis
Int
To set durationMillis of line animation
targetColor
Color
To set targetColor when it will be changed during the animation
targetValue
Float
To set targetValue
ImageConfig
Parameter Name
Type
Description
imageUrl
String
To set imageUrl
placeholder
Painter
To set placeholder
borderWidth
Dp
To set borderWidth of image
size
Dp
To set size
animation
PointAnimation
To set animation
PointShadowConfig
Parameter Name
Type
Description
elevation
Int
To set elevation
color
Color
To set color
alpha
Float
To set alpha of shadow
Item Types
TimelineItem.Point
Parameter Name
Type
Description
text
String
To set text
textStyle
TextStyle
To set textStyle
pointConfig
PointConfig
To set pointConfig
contentMargin
Dp
To set contentMargin
lineConfig
LineConfig
To set lineConfig
pointShadowConfig
PointShadowConfig
To set shadow
TimelineItem.Image
Parameter Name
Type
Description
text
String
To set text
textStyle
TextStyle
To set textStyle of text
imageContentDescription
String
To set imageContentDescription
imageConfig
ImageConfig
To set imageConfig
lineConfig
LineConfig
To set lineConfig
TimelineItem.PointWithIndex
Parameter Name
Type
Description
text
String
To set text
textStyle
TextStyle
To set textStyle
pointConfig
PointConfig
To set pointConfig
contentMargin
Dp
To set contentMargin
lineConfig
LineConfig
To set lineConfig
pointShadowConfig
PointShadowConfig
To set shadow
indexTextStyle
TextStyle
To set index style
Contributors
This library is maintained mainly by Trendyol Android Team members but also other Android lovers contributes.
License
Copyright 2023 Trendyol.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.