public class UIUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.TimeZone |
CONFERENCE_TIME_ZONE
Time zone to use when formatting all session times.
|
static android.net.Uri |
CONFERENCE_URL |
| Constructor and Description |
|---|
UIUtils() |
| Modifier and Type | Method and Description |
|---|---|
static android.text.Spannable |
buildStyledSnippet(java.lang.String snippet)
Given a snippet string with matching segments surrounded by curly braces,
turn those areas into bold spans, removing the curly braces.
|
static long |
getCurrentTime(android.content.Context context) |
static android.graphics.drawable.Drawable |
getIconForIntent(android.content.Context context,
android.content.Intent i) |
static java.lang.String |
getLastUsedTrackID(android.content.Context context) |
static boolean |
isColorDark(int color)
Calculate whether a color is light or dark, based on a commonly known
brightness formula.
|
static boolean |
isHoneycomb() |
static boolean |
isHoneycombTablet(android.content.Context context) |
static boolean |
isTablet(android.content.Context context) |
static void |
setLastUsedTrackID(android.content.Context context,
java.lang.String trackID) |
static void |
setTextMaybeHtml(android.widget.TextView view,
java.lang.String text)
Populate the given
TextView with the requested text, formatting
through Html.fromHtml(String) when applicable. |
public static final java.util.TimeZone CONFERENCE_TIME_ZONE
TimeZone.getDefault().public static final android.net.Uri CONFERENCE_URL
public static void setTextMaybeHtml(android.widget.TextView view,
java.lang.String text)
TextView with the requested text, formatting
through Html.fromHtml(String) when applicable. Also sets
TextView.setMovementMethod(android.text.method.MovementMethod) so inline links are handled.public static android.text.Spannable buildStyledSnippet(java.lang.String snippet)
public static java.lang.String getLastUsedTrackID(android.content.Context context)
public static void setLastUsedTrackID(android.content.Context context,
java.lang.String trackID)
public static boolean isColorDark(int color)
public static boolean isHoneycomb()
public static boolean isTablet(android.content.Context context)
public static boolean isHoneycombTablet(android.content.Context context)
public static long getCurrentTime(android.content.Context context)
public static android.graphics.drawable.Drawable getIconForIntent(android.content.Context context,
android.content.Intent i)
Copyright © 2025. All rights reserved.