android:layout_below="@+id/retingbar"
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="OnClick"
android:text="跳转"
Activity:
public voidOnClick(View view) {
Log.e("button","button");
Intent intent=newIntent(this,TwoPage.class);//方法1
startActivity(intent);
}
//页面返回
Intent in=getIntent();
//设置返回结果成功
setResult(RESULT_OK, in);
//关闭当前activity
finish();
网友评论