Comments (7)
这个需求。。说实话不太想做,建议你Clone下来自行修改。关键代码见此处。
from android-butterknife-injections.
生成字段的规则与 Android ButterKnife Zelezny 一致。其规则大概:取出xml中控件ID,将下划线命名改为小驼峰命名,所以如果你很想要“m”开头那种,也许可以试试在xml中设置id加上“m”。
PS: 可能每个人的习惯不一样,我并不喜欢这种“m”开头的方式。
from android-butterknife-injections.
可以加个开关吗?ps.是不是需求太多了^_^
from android-butterknife-injections.
恩恩。谢谢非常耐心的指导。
from android-butterknife-injections.
@tainzhi 今天在看别的问题时发现原Android ButterKnife Zelezny是有这个功能的(详见下图),我测试了一下的确有效。你可以试一下看是否满足你的需求。
from android-butterknife-injections.
我看了下,的确可以,完全满足我的需求。太好了。非常非常感谢
from android-butterknife-injections.
这个 m 是 member(成员变量) 的意思,类似 static(静态变量) 就是 s 开头,java code 约定俗成的不就是这样么?
你可以试下用 idea 重命名变量,会给你对应的提示,就沿用了这种规范。
from android-butterknife-injections.
Related Issues (17)
- 好像还是不支持kotlin项目 HOT 1
- Android 4.1 修复方案 HOT 1
- 老哥,最新版的AS4.1.1咋办啊,求更新兼容4.1.1 HOT 4
- AS4.1 HOT 8
- 最新Android Studio Arctic Fox (2020.3.1) 使用不了 HOT 10
- 请问插件没了吗?下载jar包地址链接被重置了,是把发布版取消了吗? HOT 4
- Android studio最新版的用不了 HOT 1
- plugin can be installed on Android studio 2021.1.1 HOT 3
- as升级火烈鸟后无法使用了
- 不能支持kotlin HOT 1
- AS 3.4.1 插件加载失败 HOT 1
- 好像丢了一个功能 Added support for generating separate OnClick methods HOT 2
- 和原Android ButterKnife Zelezny 有同样的Bug HOT 8
- 和项目无关的问题 HOT 1
- Plugin Error: Plugin "Android ButterKnife Injections (Support Kotlin)" is incompatible (supported only in IntelliJ IDEA). HOT 6
- AndroidStudio4.1升级后显示插件不兼容 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-butterknife-injections.