예제 #1
0
 public void setSubtitle(CharSequence charSequence) {
     if (!TextUtils.isEmpty(charSequence)) {
         if (this.d == null) {
             Context context = getContext();
             this.d = new TextView(context);
             this.d.setSingleLine();
             this.d.setEllipsize(TruncateAt.END);
             if (this.m != 0) {
                 this.d.setTextAppearance(context, this.m);
             }
             if (this.y != 0) {
                 this.d.setTextColor(this.y);
             }
         }
         if (this.d.getParent() == null) {
             a(this.d);
             e(this.d);
         }
     } else if (!(this.d == null || this.d.getParent() == null)) {
         removeView(this.d);
     }
     if (this.d != null) {
         this.d.setText(charSequence);
     }
     this.w = charSequence;
 }
예제 #2
0
 public void setNavigationIcon(Drawable drawable) {
     if (drawable != null) {
         m();
         if (this.e.getParent() == null) {
             a(this.e);
             e(this.e);
         }
     } else if (!(this.e == null || this.e.getParent() == null)) {
         removeView(this.e);
     }
     if (this.e != null) {
         this.e.setImageDrawable(drawable);
     }
 }
예제 #3
0
 public void setLogo(Drawable drawable) {
     if (drawable != null) {
         j();
         if (this.f.getParent() == null) {
             a(this.f);
             e(this.f);
         }
     } else if (!(this.f == null || this.f.getParent() == null)) {
         removeView(this.f);
     }
     if (this.f != null) {
         this.f.setImageDrawable(drawable);
     }
 }