android studio饿了么源码 博客
发布网友
发布时间:2022-04-25 12:24
我来回答
共1个回答
热心网友
时间:2023-07-09 16:12
tvSearchRlt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(MainActivity.this,SearchActivity.class);
int location[] = new int[2];
tvSearchRlt.getLocationOnScreen(location);
intent.putExtra("x",location[0]);
intent.putExtra("y",location[1]);
startActivity(intent);
overridePendingTransition(0,0);
}
});