Colorful icon indicating copy to clipboard operation
Colorful copied to clipboard

include里面的id怎么得到

Open mux2 opened this issue 8 years ago • 3 comments

mColorful = new Colorful.Builder(mContext) .backgroundColor(R.id.rl_bottom_root, R.attr.root_view_bg)

比如rl_bottom_root是include里面的根布局ID,怎么写? 你 .backgroundColor(R.id.rl_bottom_root, R.attr.root_view_bg),这边的ID只能是非include的ID把?

mux2 avatar Jul 08 '16 06:07 mux2

你这个日夜间还挺好用的,我就差这一步了

mux2 avatar Jul 08 '16 06:07 mux2

如果你的include标签中设置了id,那么就使用这个id。否则使用include引入的layout中的那个id就行。

hehonghui avatar Jul 08 '16 09:07 hehonghui

可以了,谢谢

mux2 avatar Jul 12 '16 01:07 mux2