JakeWharton / butterknife

Bind Android views and callbacks to fields and methods.
http://jakewharton.github.io/butterknife/
Apache License 2.0
25.55k stars 4.6k forks source link

Resource List/Array Support #431

Open giolin opened 8 years ago

giolin commented 8 years ago

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.

JakeWharton commented 8 years ago

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

giolin commented 8 years ago

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 :)

ghost commented 6 years ago

Hi @JakeWharton , @giolin , Is this fixed?

giolin commented 6 years ago

@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.