【发布时间】:2017-03-29 07:26:20
【问题描述】:
我有一个选项卡布局,我在其中设置文本和矢量图像,如下所示:
TextView tab2 = (TextView) LayoutInflater.from(this).inflate(R.layout.custom_tab, null);
tab2.setText("OFFER");
tab2.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_offer, 0, 0);
tabLayout.addTab(tabLayout.newTab().setCustomView(tab2));
如何更改可绘制矢量图像的色调颜色?
【问题讨论】:
标签: android image android-vectordrawable tint