android button 函数调用栈

金鞍玉勒寻芳客,未信我庐别有春。这篇文章主要讲述android button 函数调用栈相关的知识,希望能为你提供帮助。

Button button=(Button) findViewById(R.id.button);

button.setOnClickListener(new Button.OnClickListener()
{

@Override

public void onClick(View v) {
DisplayToast("ODO Auto-generated method stub 事件触发成功");
}
});

 
【android button 函数调用栈】"[email  protected]" prio=5 runnable
java.lang.Thread.State: RUNNABLE
at com.example.zzf073.eventtest.MainActivity.DisplayToast(MainActivity.java:53)
at com.example.zzf073.eventtest.MainActivity$1.onClick(MainActivity.java:42)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Method.java:-1)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    推荐阅读