CarProgressBarStyle


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class CarProgressBarStyle


Defines the visual style of a CarProgressBar.

This style can be used to customize the appearance of the progress bar, such as its color or stroke cap.

Custom styles will fall back to host defaults if they are unset, or if they fail host-enforced contrast requirements.

Summary

Nested types

public final class CarProgressBarStyle.Builder

A builder of CarProgressBarStyle.

Public methods

boolean
@Nullable CarColor

Returns the color of the progress bar, or null if not set.

int

Returns the stroke cap of the progress bar, or DEFAULT if not set.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getColor

Added in 1.9.0-alpha02
public @Nullable CarColor getColor()

Returns the color of the progress bar, or null if not set.

getStrokeCap

Added in 1.9.0-alpha02
public int getStrokeCap()

Returns the stroke cap of the progress bar, or DEFAULT if not set.

hashCode

public int hashCode()

toString

public @NonNull String toString()