[英]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.