标签:android
public void onclicklistener(View tager) { Intent intent = new Intent(); intent.setClass(Activity02.this, OtherActivity.class); Activity02.this.startActivity(intent); } <Button android:id = "@+id/myButton" android:onClick="onclicklistener" android:layout_width ="fill_parent" android:layout_height = "wrap_content" />
标签:android
原文地址:http://blog.csdn.net/rainlesvio/article/details/40105801