0
            if (mLabelView != null) {
                mLabelView.setVisibility(View.GONE);
            } 
        } else { 
            getLabelView(); 
            mLabelView.setText(text);
            mLabelView.setVisibility(VISIBLE);
        } 
    } 
 
    /** 
     * Adds or updates a text view for the data label. 
     */ 
    public void setLabel(char[] text, int size) {
        if (text == null || size == 0) {
            if (mLabelView != null) {
                mLabelView.setVisibility(View.GONE);
            } 
        } else { 
            getLabelView(); 
            mLabelView.setText(text, 0, size);
            mLabelView.setVisibility(VISIBLE);
        } 
    } 
 
    /** 
     * Returns the text view for the data label, creating it if necessary. 
     */ 
    public TextView getLabelView() {
        if (mLabelView == null) {
            mLabelView = new TextView(mContext);
            mLabelView.setSingleLine(true);
            mLabelView.setEllipsize(TruncateAt.MARQUEE);
            mLabelView.setTextAppearance(mContext, android.R.style.TextAppearance_Small);
            mLabelView.setTypeface(mLabelView.getTypeface(), Typeface.BOLD);
            addView(mLabelView);
        } 
        return mLabelView;
    }