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);
posted @ 2016-07-14 08:44  乔瑟琳  阅读(518)  评论(0编辑  收藏  举报