简体   繁体   中英

Automatically generating UI initializations in Android Studio

There was an Android Studio plugin that enabled the user to right click and generate XML UI initializations automatically , I cannot find it now and I cannot find any replacement for it , is theres an alternative to writing the initializations of buttons and textviews by hand in Android Studio?

The old plugin used to work by right clicking then selecting "Generate" it work in the same way that getters and setters now work in Android Studio .

如果你不喜欢所有的胶水代码只是使用Android数据绑定库或像Butterknife这样的一些注释库都很好,以保持清洁代码

I think yo're talking about ButterKnife Zelezny plugin.

Check it: https://github.com/avast/android-butterknife-zelezny

Hope it will help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM