FileDocCategorySizeDatePackage
KeyguardIndicationTextView.javaAPI DocAndroid 5.1 API2166Thu Mar 12 22:22:42 GMT 2015com.android.systemui.statusbar.phone

KeyguardIndicationTextView

public class KeyguardIndicationTextView extends android.widget.TextView
A view to show hints on Keyguard ("Swipe up to unlock", "Tap again to open").

Fields Summary
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 voidswitchIndication(java.lang.CharSequence text)
Changes the text with an animation and makes sure a single indication is shown long enough.

param
text The text to show.


        // 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 voidswitchIndication(int textResId)
See {@link #switchIndication}.

        switchIndication(getResources().getText(textResId));