KeyguardIndicationTextViewpublic class KeyguardIndicationTextView extends android.widget.TextView A view to show hints on Keyguard ("Swipe up to unlock", "Tap again to open"). |
Constructors Summary |
---|
public KeyguardIndicationTextView(android.content.Context context)
super(context);
| public KeyguardIndicationTextView(android.content.Context context, android.util.AttributeSet attrs)
super(context, attrs);
| public KeyguardIndicationTextView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
super(context, attrs, defStyleAttr);
| public KeyguardIndicationTextView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, int defStyleRes)
super(context, attrs, defStyleAttr, defStyleRes);
|
Methods Summary |
---|
public void | switchIndication(java.lang.CharSequence text)Changes the text with an animation and makes sure a single indication is shown long enough.
// TODO: Animation, make sure that we will show one indication long enough.
if (TextUtils.isEmpty(text)) {
setVisibility(View.INVISIBLE);
} else {
setVisibility(View.VISIBLE);
setText(text);
}
| public void | switchIndication(int textResId)See {@link #switchIndication}.
switchIndication(getResources().getText(textResId));
|
|