The app I'm working uses vector images, and I'm trying to implement pre-API 21 support for them using MrVector. I'm aware that variables can't be passed into @InjectView() - is there any way of working around this?
Asked
Active
Viewed 60 times
0
-
variables? what variables? – pskink Jun 03 '15 at 11:11
-
Drawable would be a variable, and I can't pass that into @InjectView(). – CiaranC94 Jun 03 '15 at 11:51
-
i don't get it: MrVector creates Drawables, not Views – pskink Jun 03 '15 at 11:56
-
OK, forget it. I'll try to find some other way of doing this. – CiaranC94 Jun 03 '15 at 11:58
-
1I think you either need some kind of fancy custom view that can take a "drawable" index or raw res index as an attribute and initializes that based on API level, or just use normal `@InjectView` and initialize by hand, I guess. Haven't used MrVector so these are wild guesses. – EpicPandaForce Jun 03 '15 at 12:31