tripkit-android / com.skedgo.tripkit.ui.tripresult / TripSegmentItemViewModel
TripSegmentItemViewModel
class TripSegmentItemViewModel :
RxViewModel
Types
Name | Summary |
---|---|
SegmentViewType | enum class SegmentViewType |
Properties
Name | Summary |
---|---|
backgroundCircleTint | val backgroundCircleTint: ObservableField< Int > |
bottomLineTint | val bottomLineTint: ObservableField< Int > |
description | val description: ObservableField< String > |
endTime | val endTime: ObservableField< String > |
icon | val icon: ObservableField<Drawable> |
showBackgroundCircle | val showBackgroundCircle: ObservableBoolean |
showBottomLine | val showBottomLine: ObservableBoolean |
showDescription | val showDescription: ObservableBoolean |
showEndTime | val showEndTime: ObservableBoolean |
showStartTime | val showStartTime: ObservableBoolean |
showTopLine | val showTopLine: ObservableBoolean |
startTime | val startTime: ObservableField< String > |
title | val title: ObservableField< String > |
topLineTint | val topLineTint: ObservableField< Int > |
tripSegment | var tripSegment: TripSegment ? |
Functions
Name | Summary |
---|---|
setupSegment | fun setupSegment(viewType: SegmentViewType, title: String , description: String ? = null, startTime: String ? = null, endTime: String ? = null, lineColor: Int = Color.TRANSPARENT, topConnectionColor: Int = lineColor, bottomConnectionColor: Int = lineColor): Unit |
showSegmentIcon | fun showSegmentIcon(segment: TripSegment , tintWhite: Boolean ): Unit |