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);
时间: 2024-10-19 05:00:15