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)
Set the time view to auto-size its text from minSizePx to maxSizePx based on the view size.
|
public SkylightEventView(android.content.Context context)
public SkylightEventView(android.content.Context context,
android.util.AttributeSet attrs)
public SkylightEventView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public java.lang.CharSequence getLabelText()
public void setLabelText(java.lang.CharSequence text)
public java.lang.CharSequence getTimeText()
public void setTimeText(java.lang.CharSequence text)
public NonExistentClass setLabelText(int resId)
public void setLabelTextAppearance(int resId)
Set the text appearance for the label view.
resId - The style to apply as the label view's text appearancepublic void setTimeText(int resId)
public void setTimeTextAppearance(int resId)
Set the text appearance for the time view.
resId - The style to apply as the time view's text appearancepublic void setTimeTextAutoSizeRange(int minSizePx,
int maxSizePx,
int stepGranularity)
Set the time view to auto-size its text from minSizePx to maxSizePx based on the view size.