butterknife icon indicating copy to clipboard operation
butterknife copied to clipboard

Resource List/Array Support

Open giolin opened this issue 9 years ago • 4 comments

Is it possible to have FieldCollectionResourceBinding to support binging multiple resources as List or Array so @BindColor({R.color.red, R.color.green, R.color.blue}) int[] mColors; can be possible in Butterknife?

This is really useful since it can eliminate some switch cases in the code.

giolin avatar Jan 21 '16 04:01 giolin

Only if you promise me you'll stop using Hungarian notation!

JakeWharton avatar Jan 21 '16 04:01 JakeWharton

lol, ok I promise to be more modern I just took a look of the source code and found it is more work than I thought to have this feature added. Anyway I will try to achieve it :)

giolin avatar Jan 21 '16 08:01 giolin

Hi @JakeWharton , @giolin , Is this fixed?

ghost avatar May 12 '18 18:05 ghost

@MONIKA-KUMAR-JETHANI Sorry but I didn't do anything on this open issue. Are you working on this? I will take time looking into it.

giolin avatar May 15 '18 15:05 giolin