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 to
resId. |
void |
setTimeText(java.lang.CharSequence text) |
void |
setTimeText(int resId)
Set the time text to the string resolved through
resId. |
void |
setTimeTextAppearance(int resId)
Set the text appearance for the time view to
resId. |
NonExistentClass |
setTimeTextAutoSizeRange(int minSizePx,
int maxSizePx,
int stepGranularity)
|
NonExistentClass |
setTimeTextAutoSizeRange-aAECn7w(int minSize,
int maxSize,
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 to resId.
resIdpublic void setTimeText(@StringRes
int resId)
Set the time text to the string resolved through resId.
resIdpublic void setTimeTextAppearance(@StyleRes
int resId)
Set the text appearance for the time view to resId.
resId@NotNull
public NonExistentClass setTimeTextAutoSizeRange(int minSizePx,
int maxSizePx,
int stepGranularity)