Drawable新属性

mSelectEndorseReasonTv.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.toup, 0);新属性
替换:
Drawable drawable = mContext.getResources().getDrawable(mDrawableMap.get(mQueryOrderResult.firstCarrier));
drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());
holder.mCarrierandFlightNo.setCompoundDrawablePadding(5);
holder.mCarrierandFlightNo.setCompoundDrawables(drawable, null, null, null);
原文地址:https://www.cnblogs.com/yuanting/p/5669048.html