gpt4 book ai didi

android - 无法解析 Butterknife 中的符号 BindViews

转载 作者:太空狗 更新时间:2023-10-29 15:34:32 24 4
gpt4 key购买 nike

我正在使用 Butterknife 绑定(bind) View 。当绑定(bind)多个 View 时喜欢Acting on Multiple Views In a List , @BindViews 不可用。见下图:

enter image description here

我正在尝试下面的代码:

@BindViews({ R.id.edtOne, R.id.edtTwo, R.id.edtThree })
List<EditText> editTextsList;

我该如何解决?

最佳答案

确保更新到最新版本的 ButterKnife:

版本 8.0.0 (2016-04-25)

@Bind becomes @BindView and @BindViews (one view and multiple views, respectively).

关于android - 无法解析 Butterknife 中的符号 BindViews,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37019018/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com