首页 > 代码库 > 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 事件触发成功");
}
});
"main@3973" 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)
android button 函数调用栈