简体   繁体   English

Eclipse Android自动生成动作处理程序

[英]Eclipse Android auto-generating action handlers

I have question about using wysiwyg gui editor in android SDK. 我对在Android SDK中使用wysiwyg gui编辑器有疑问。
I have simple activity and one control (eg radio). 我有简单的活动和一个控件(例如收音机)。 I want to use non-default names for handlers, so I have to set parameter in every control like android:onClick="klocek" in xml or just "On Click" in wysiwyg parameters. 我想为处理程序使用非默认名称,所以我必须在每个控件中设置参数,例如xml中的android:onClick =“ klocek”或所见即所得参数中的“ On Click”。
Is there any option to automatically generate those functions? 有没有自动生成这些功能的选项? I mean I write name of my handler and eclipse will generate this function in my java code? 我的意思是我写了我的处理程序的名称,Eclipse将在我的Java代码中生成此函数?
In visual studio for c# there is ability to make something like this but what about android eclipse? 在Visual Studio for C#中,可以进行类似这样的操作,但是android eclipse呢?

不,您不能更改此设置,也可以使用默认生成的XML手动进行操作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Eclipse 中自动生成 toString 方法的快捷方式是什么? - What are the shortcut to Auto-generating toString Method in Eclipse? 自动生成默认和字段构造函数的 eclipse 快捷方式是什么? - What is the eclipse shortcut for auto-generating a default and field constructor? 如何在自动生成getter和setter时强制Eclipse使用this关键字? - How to force Eclipse to use the this keyword when auto-generating getters and setters? 自动生成EJB3实体Bean - Auto-Generating EJB3 Entity Beans Javadoc 不会在 IntelliJ IDEA 中自动生成 - Javadoc not auto-generating in IntelliJ IDEA 在单元测试中自动生成数据存储区索引 - Auto-generating datastore indexes in unit tests 自动生成一个唯一的varchar字段 - mySQL,Java,Hibernate - Auto-generating a unique varchar field - mySQL, Java, Hibernate 自动生成Angular / Java的前端和后端验证 - Auto-generating frontend and backend validation for Angular/Java 不是为Spring Data Elasticsearch中的Long类型而是字符串类型字段自动生成id - Not Auto-generating id for Long type but for String type field in Spring Data Elasticsearch 删除完全未使用的XML文件,清理后R.java无法自动生成 - Deleting completely unused XML file, R.java not auto-generating after clean
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM