Bind an array of strings in an oil knife

I am trying to bind an array of strings using butterknife . But it seems that there is no way (but there is an array binding method in processor ).

Here is my code:

strings.xml

 <string-array name="test_strings"> <item>VK</item> <item>Facebook</item> <item>Twitter</item> <item>Instagram</item> <item>Google plus</item> <item>Google mail</item> </string-array> 

Mainactivity

 @Bind(R.string.test_strings) protected String [] mStrings; 
+7
java android arrays annotations butterknife
source share
1 answer

Five minutes ago Butterknife 8.0.0 was released .

R.string.test_array change to R.array.test_array

And @Bind to @BindArray

+11
source share

All Articles