FileDocCategorySizeDatePackage
ListRowHoverCardView.javaAPI DocAndroid 5.1 API2464Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.widget

ListRowHoverCardView

public final class ListRowHoverCardView extends android.widget.LinearLayout
ListRowHoverCardView contains a title and description.

Fields Summary
private final android.widget.TextView
mTitleView
private final android.widget.TextView
mDescriptionView
Constructors Summary
public ListRowHoverCardView(android.content.Context context)

       this(context, null);
    
public ListRowHoverCardView(android.content.Context context, android.util.AttributeSet attrs)

        this(context, attrs, 0);
    
public ListRowHoverCardView(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);
        LayoutInflater inflater = LayoutInflater.from(context);
        inflater.inflate(R.layout.lb_list_row_hovercard, this);
        mTitleView = (TextView) findViewById(R.id.title);
        mDescriptionView = (TextView) findViewById(R.id.description);
    
Methods Summary
public final java.lang.CharSequencegetDescription()

        return mDescriptionView.getText();
    
public final java.lang.CharSequencegetTitle()

        return mTitleView.getText();
    
public final voidsetDescription(java.lang.CharSequence text)

        if (!TextUtils.isEmpty(text)) {
            mDescriptionView.setText(text);
            mDescriptionView.setVisibility(View.VISIBLE);
        } else {
            mDescriptionView.setVisibility(View.GONE);
        }
    
public final voidsetTitle(java.lang.CharSequence text)

        if (!TextUtils.isEmpty(text)) {
            mTitleView.setText(text);
            mTitleView.setVisibility(View.VISIBLE);
        } else {
            mTitleView.setVisibility(View.GONE);
        }