示例#1
0
 public AppCompatEditText(Context context, AttributeSet attrs, int defStyleAttr) {
   super(TintContextWrapper.wrap(context), attrs, defStyleAttr);
   this.mTintManager = TintManager.get(getContext());
   this.mBackgroundTintHelper = new AppCompatBackgroundHelper(this, this.mTintManager);
   this.mBackgroundTintHelper.loadFromAttributes(attrs, defStyleAttr);
   this.mTextHelper = AppCompatTextHelper.create(this);
   this.mTextHelper.loadFromAttributes(attrs, defStyleAttr);
   this.mTextHelper.applyCompoundDrawablesTints();
 }
 public AppCompatMultiAutoCompleteTextView(
     Context paramContext, AttributeSet paramAttributeSet, int paramInt) {
   super(TintContextWrapper.wrap(paramContext), paramAttributeSet, paramInt);
   paramContext =
       TintTypedArray.obtainStyledAttributes(
           getContext(), paramAttributeSet, TINT_ATTRS, paramInt, 0);
   this.mTintManager = paramContext.getTintManager();
   if (paramContext.hasValue(0)) {
     setDropDownBackgroundDrawable(paramContext.getDrawable(0));
   }
   paramContext.recycle();
   this.mBackgroundTintHelper = new AppCompatBackgroundHelper(this, this.mTintManager);
   this.mBackgroundTintHelper.loadFromAttributes(paramAttributeSet, paramInt);
   this.mTextHelper = AppCompatTextHelper.create(this);
   this.mTextHelper.loadFromAttributes(paramAttributeSet, paramInt);
   this.mTextHelper.applyCompoundDrawablesTints();
 }