public class SkylightEventView
A simple card view showing a single Skylight event. Typically used to display the time of the event and the label, e.g. "Sunrise" or "Sunset".
| Constructor and Description |
|---|
SkylightEventView(android.content.Context context) |
SkylightEventView(android.content.Context context,
android.util.AttributeSet attrs) |
SkylightEventView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
getLabelText() |
java.lang.CharSequence |
getTimeText() |
void |
setLabelText(java.lang.CharSequence text) |
NonExistentClass |
setLabelText(int resId) |
void |
setLabelTextAppearance(int resId)
Set the text appearance for the label view.
|
void |
setTimeText(java.lang.CharSequence text) |
void |
setTimeText(int resId) |
void |
setTimeTextAppearance(int resId)
Set the text appearance for the time view.
|
void |
setTimeTextAutoSizeRange(int minSizePx,
int maxSizePx,
int stepGranularity)
|
public SkylightEventView(@NotNull
android.content.Context context)
public SkylightEventView(@NotNull
android.content.Context context,
@NotNull
android.util.AttributeSet attrs)
public SkylightEventView(@NotNull
android.content.Context context,
@NotNull
android.util.AttributeSet attrs,
int defStyleAttr)
@NotNull public java.lang.CharSequence getLabelText()
public void setLabelText(@NotNull
java.lang.CharSequence text)
@NotNull public java.lang.CharSequence getTimeText()
public void setTimeText(@NotNull
java.lang.CharSequence text)
@NotNull
public NonExistentClass setLabelText(@StringRes
int resId)
public void setLabelTextAppearance(@StyleRes
int resId)
Set the text appearance for the label view.
resId - The style to apply as the label view's text appearancepublic void setTimeText(@StringRes
int resId)
public void setTimeTextAppearance(@StyleRes
int resId)
Set the text appearance for the time view.
resId - The style to apply as the time view's text appearance