avast / android-butterknife-zelezny

Android Studio plug-in for generating ButterKnife injections from selected layout XML.
Apache License 2.0
3.38k stars 413 forks source link

Added custom naming functionality #138

Open vualeks opened 7 years ago

vualeks commented 7 years ago

As per issue #80 and @TomasKypta suggestions I've changed Settings naming field and enabled custom naming for generated members by using ${ID} and ${TYPE} for name from ID and class name respectively

vualeks commented 7 years ago

For example, if you have text view in your XML and it is called "title", you can put in Naming field "${ID}_${TYPE}" and resulting generated name would be title_TextView

2017-09-05 11:04 GMT+02:00 marson notifications@github.com:

How to use?大神

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avast/android-butterknife-zelezny/pull/138#issuecomment-327116557, or mute the thread https://github.com/notifications/unsubscribe-auth/ANG2QhdI-vCZom9LVhmNsdABHjP8RCdmks5sfQ67gaJpZM4NvHg_ .