-
2 votesanswersviews
如何获取与编辑文本相关的TextInputLayout?
我在不同的TextInputLayouts中有很多编辑文本,如何获得TextInputLayout我正在使用的编辑文本在哪里? 示例: @BindView(R.id.eT) EditText eT; @BindView(R.id.eT2) EditText eT2; @BindView(R.id.text_input_layout) TextInputLayout textInputLayou... -
2 votesanswersviews
如何使用Butterknife获取对片段xml的引用
是否可以通过接口获取SomeFragment?我不想使用FragmentManager,因为在我的原始代码中MainActivity是一个片段 . public class MainActivity extends AppCompatActivity { @BindView(R.id.some_container) FragmentCallback fragment; ... -
1 votesanswersviews
不工作Butterknife与空指针异常错误
我想在我的Android项目中使用 ButterKnife . 我有 Activity 实现 Interface . 我正在使用MVP模式 . 我试图从 EditText 获取文本,但它会抛出一个 空指针异常 . 这是我的简单代码 . Gradle dependencies compile 'com.jakewharton:butterknife:8.8.1' Layout <?x...