腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
ButterKnife
如何
使用
带有
参数
的
@
OnClick
android
、
butterknife
TextView,并通过调用setItem来设置文本 public void setItem(String text){} 应该是这样
的
:private String mText; mText = text; @
OnClick
(R.id.commentsTextView
使用
@
OnClick
的
正确方式是什么,
使用
参数
浏览 56
提问于2017-02-06
得票数 3
回答已采纳
2
回答
android在段尾指向view.setonclicklistener为什么它们不匹配
java
、
android
、
nullpointerexception
通常sms是空
的
。(MainActivity.java:38) at android.app
的
.init2(MainActivity.java:60)。(本土方法)java:1518)在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) importbtnMap.setOnClickListener(new View.OnClickListener() {
浏览 0
提问于2018-07-27
得票数 0
回答已采纳
5
回答
更好
的
findViewById()代码结构
android
、
performance
、
android-layout
我对
使用
android中
的
代码很好奇,比如 findViewById(R.id.view_id).setVisibility(View.GONE); 或者 findViewById(R.id.view_id).setOnClickListener(new OnClickListener() { public void
onClick
(View v) { }); 这是一个
使用
&qu
浏览 35
提问于2017-05-23
得票数 0
回答已采纳
4
回答
ButterKnife
onclick
不工作
java
、
android
、
dependency-injection
、
onclick
、
butterknife
我
使用
蝶形刀库完美地注入了视图。但是,当我尝试实现侦听器时,例如
onclick
,我无法实现它们。下面的java代码将帮助你理解我
的
问题。savedInstanceState) { setContentView(R.layout.login); //initListeners
浏览 113
提问于2015-04-13
得票数 26
回答已采纳
1
回答
ButterKnife
8.6.0不工作
android
、
nullpointerexception
、
butterknife
我以前
使用
的
是7.0.1,它工作得很好,但突然停止工作,给出了空指针异常,而
使用
variables.Then时,我将它更改为8.6.0annotationProcessorapplyCouponButton.setOnClickListener(n
浏览 0
提问于2017-06-15
得票数 2
5
回答
删除Android中
OnClick
注释
的
“从不
使用
方法”警告
methods
、
annotations
、
android-studio
、
warnings
、
butterknife
我
使用
的
是最新版本
的
Android (0.5.7)
的
蝴蝶刀5.0。我
如何
删除对
使用
ButterKnife
‘
OnClick
注释
的
方法
的
“方法永不
使用
”
的
警告,我注意到Eclipse没有给出'
OnClick
’方法
的
警告。提前感谢
浏览 5
提问于2014-04-30
得票数 50
回答已采纳
5
回答
java.lang.illegalStateException:蝴蝶刀
android
、
illegalstateexception
、
butterknife
我正在
使用
蝴蝶刀绑定我
的
视图,所以当活动开始时,将引发以下异常 我
的<
浏览 3
提问于2017-08-30
得票数 3
回答已采纳
2
回答
如何
为ProGuard 8配置
ButterKnife
设置?
android
、
android-proguard
、
butterknife
我在我
的
安卓应用程序中运行
ButterKnife
版本8.5.1。如果我试图为ProGuard设置
ButterKnife
,那么在我
的
发布版本中仍然会出现崩溃。有一个,它告诉您进行以下设置:-dontwarn
butterknife
.internal.** @
butterknife
.* <methods>;另
浏览 6
提问于2017-03-24
得票数 7
回答已采纳
2
回答
在Android布局中,除了HTML
的
类之外,还有其他选择吗?
android
、
android-layout
在web开发中,可以将class属性设置为某些HTML元素(例如按钮),这样您就可以将一些命令耦合到只有该类
的
元素(例如js监听器、css样式等)。Button button1 = (Button) findVie
浏览 2
提问于2015-02-25
得票数 1
回答已采纳
1
回答
有没有可能在android
的
espresso测试类中
使用
切割机来注入视图?
android
、
android-fragments
、
android-espresso
、
butterknife
是否可以
使用
切割器为测试类注入视图?视图被注入到由我
的
MainActivity类创建和提交
的
片段中。下面是我
的
测试类中
的
代码: teachButton = (Button) mMainActivity.findViewById
浏览 1
提问于2014-02-23
得票数 6
2
回答
黄油刀ocClick适配器RecyclerView
java
、
android
、
butterknife
我
使用
黄油刀存储库。我
的
朋友们可以帮我做一下点击监听器功能吗?txt_image; super(itemView);
ButterKnife
.bind
浏览 5
提问于2019-12-09
得票数 0
2
回答
Fragment View.OnClickListener无法识别点击
android
、
butterknife
我
的
片段实现了View.OnClickListener,但根本无法识别任何点击。savedInstanceState) {
ButterKnife
.bindmybutton.setOnClickListener(this); } public void
onClick
我删除了我<em
浏览 0
提问于2019-03-23
得票数 0
5
回答
线性布局点击没有影响。
android
我有一个LinearLayout,当我点击它时,我想要点击它
的
效果。这是我
的
LinearLayout ( XML )。clickable="true" android:background="@drawable/ripple_effect">myLyout.setOnClickListener(new View.OnClickListene
浏览 5
提问于2017-04-25
得票数 0
回答已采纳
1
回答
使用
蝴蝶刀
的
OnSeekBarChangeListener
android
、
seekbar
、
butterknife
如何
使用
蝴蝶刀将OnSeekBarChangeListener设置为seekBar?
浏览 5
提问于2014-11-19
得票数 5
回答已采纳
3
回答
如何
在AndroidX中实现
Butterknife
.Action?
androidx
、
butterknife
我不能在andoidx中
使用
ButterKnife
.Action,有人能给我一些关于
如何
在andoidx中
使用
ButterKnife
.Action
的
建议吗?类路径'com.jakewharton:
butterknife
-gradle-plugin:9.0.0-rc2‘ 实现'com.jakewharton:
butterknife
:10.0.0‘annotationProcessor’com.jakewharton:
butte
浏览 4
提问于2019-06-25
得票数 0
1
回答
从菜单中绑定SearchView
android
、
butterknife
在我当前
的
Android项目中,我
使用
Butterknife
库绑定视图,并为视图
使用
onClick
注释。所有这些都很好,即使在片段中也是如此,但现在我无法找到解决方案: 我
使用
新
的
ToolBar作为ActionBar,并在其中充气
带有
SearchView
的
菜单。对于这个SearchView,我想
使用
@OnTextChanged注释,但是当我用菜单项
的
ActionView调用bind方法时,
B
浏览 1
提问于2015-09-21
得票数 12
回答已采纳
3
回答
将项目拆分成模块后,
Butterknife
无法绑定视图
android
、
butterknife
我打开了
ButterKnife
.setDebug(BuildConfig.DEBUG)16401-16401 D/
ButterKnife
: Looking up binding所以我认为这可能是批注处理器
的
依赖关系。:
butterknife
-compiler:8.
浏览 9
提问于2018-04-17
得票数 1
3
回答
Android
ButterKnife
java
、
android
、
gradle
、
butterknife
我安装了
ButterKnife
--我
的
build.gradle如下所示: compile fileTree(dir: 'libs', include: ['*.jarjunit:junit:4.12' compile 'com.jakewharton:
butterknife
:8.4.0'我
的</
浏览 5
提问于2016-11-19
得票数 0
回答已采纳
1
回答
如何
在ListView安卓系统中
使用
刀头和页脚
java
、
android
、
butterknife
R.layout.activity_input_forward_department_footer, null); lv.addFooterView(footer); btnForward.setText("SetText");
如何
使用
这些代码
的
<
浏览 0
提问于2018-03-02
得票数 1
回答已采纳
3
回答
如何
告诉ProGuard混淆方法和类名?
java
、
android
、
obfuscation
、
proguard
我
使用
ProGuard来混淆我
的
apk,但是类名和方法名没有变化--它们和以前一样。只有变量名才会更改。它们中
的
大多数都没有扩展像Activity这样
的
类;在我
的
代码中有一些继承,但它是100%由我自己编写
的
。-keep class com.google.ads.** #
浏览 3
提问于2013-06-11
得票数 10
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
如何使用Python超参数的网格搜索ARIMA模型
Android神器
简述多种Kotlin语法小技巧
React-属性传值
使用React Hooks代替类的6大理由
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券